1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/docker-pycreds/default.nix

45 lines
875 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
six,
pythonAtLeast,
distutils,
}:
buildPythonPackage rec {
pname = "docker-pycreds";
version = "0.4.0";
pyproject = true;
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;
meta = {
description = "Python bindings for the docker credentials store API";
homepage = "https://github.com/shin-/dockerpy-creds";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}