Skip to content

Commit

Permalink
python312Packages.docker-pycreds: fix and clean
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Oct 21, 2024
1 parent 64b2308 commit b75088e
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions pkgs/development/python-modules/docker-pycreds/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,43 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
six,
pythonAtLeast,
distutils,
}:

buildPythonPackage rec {
pname = "docker-pycreds";
version = "0.4.0";
format = "setuptools";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "6ce3270bcaf404cc4c3e27e4b6c70d3521deae82fb508767870fdbf772d584d4";
src = fetchFromGitHub {
owner = "shin-";
repo = "dockerpy-creds";
rev = "refs/tags/${version}";
hash = "sha256-yYsMsRW6Bb8vmwT0mPjs0pRqBbznGtHnGb3JNHjLjys=";
};

build-system = [
setuptools
];

dependencies =
[ six ]
++ lib.optionals (pythonAtLeast "3.12") [
distutils
];

pythonImportsCheck = [ "dockerpycreds" ];

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

propagatedBuildInputs = [ six ];

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

0 comments on commit b75088e

Please sign in to comment.