Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 37 lines 743 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, cryptography 6, ipaddress 7, pyasn1 8, pyasn1-modules 9, idna 10, attrs 11, pytest 12}: 13 14buildPythonPackage rec { 15 pname = "service_identity"; 16 version = "18.1.0"; 17 18 src = fetchFromGitHub { 19 owner = "pyca"; 20 repo = pname; 21 rev = version; 22 sha256 = "1aw475ksmd4vpl8cwfdcsw2v063nbhnnxpy633sb75iqp9aazhlx"; 23 }; 24 25 propagatedBuildInputs = [ 26 pyasn1 pyasn1-modules idna attrs cryptography 27 ] ++ lib.optionals (pythonOlder "3.3") [ ipaddress ]; 28 29 checkInputs = [ pytest ]; 30 checkPhase = "py.test"; 31 32 meta = with lib; { 33 description = "Service identity verification for pyOpenSSL"; 34 license = licenses.mit; 35 homepage = https://service-identity.readthedocs.io; 36 }; 37}