1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 six,
7 pythonAtLeast,
8 distutils,
9}:
10
11buildPythonPackage rec {
12 pname = "docker-pycreds";
13 version = "0.4.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "shin-";
18 repo = "dockerpy-creds";
19 tag = version;
20 hash = "sha256-yYsMsRW6Bb8vmwT0mPjs0pRqBbznGtHnGb3JNHjLjys=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 dependencies =
28 [ six ]
29 ++ lib.optionals (pythonAtLeast "3.12") [
30 distutils
31 ];
32
33 pythonImportsCheck = [ "dockerpycreds" ];
34
35 # require docker-credential-helpers binaries
36 doCheck = false;
37
38 meta = {
39 description = "Python bindings for the docker credentials store API";
40 homepage = "https://github.com/shin-/dockerpy-creds";
41 license = lib.licenses.asl20;
42 maintainers = with lib.maintainers; [ GaetanLepage ];
43 };
44}