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 ] 30 ++ lib.optionals (pythonAtLeast "3.12") [ 31 distutils 32 ]; 33 34 pythonImportsCheck = [ "dockerpycreds" ]; 35 36 # require docker-credential-helpers binaries 37 doCheck = false; 38 39 meta = { 40 description = "Python bindings for the docker credentials store API"; 41 homepage = "https://github.com/shin-/dockerpy-creds"; 42 license = lib.licenses.asl20; 43 maintainers = with lib.maintainers; [ GaetanLepage ]; 44 }; 45}