{ stdenv, buildPythonPackage, fetchPypi, six }:

buildPythonPackage rec {
  pname = "docker-pycreds";
  version = "0.4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "6ce3270bcaf404cc4c3e27e4b6c70d3521deae82fb508767870fdbf772d584d4";
  };

  # require docker-credential-helpers binaries
  doCheck = false;

  propagatedBuildInputs = [ six ];

  meta = with stdenv.lib; {
    description = "Python bindings for the docker credentials store API.";
    homepage = https://github.com/shin-/dockerpy-creds;
    license = licenses.asl20;
  };
}