-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.docker-pycreds: fix and clean
- Loading branch information
1 parent
64b2308
commit b75088e
Showing
1 changed file
with
24 additions
and
9 deletions.
There are no files selected for viewing
33 changes: 24 additions & 9 deletions
33
pkgs/development/python-modules/docker-pycreds/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |