Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, attrs 3, buildPythonPackage 4, cryptography 5, fetchFromGitHub 6, idna 7, pyasn1 8, pyasn1-modules 9, six 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "service-identity"; 15 version = "21.1.0"; 16 17 src = fetchFromGitHub { 18 owner = "pyca"; 19 repo = pname; 20 rev = version; 21 hash = "sha256-pWc2rU3ULqEukMhd1ySY58lTm3s8f/ayQ7CY4nG24AQ="; 22 }; 23 24 propagatedBuildInputs = [ 25 attrs 26 cryptography 27 idna 28 pyasn1 29 pyasn1-modules 30 six 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "service_identity" ]; 38 39 meta = with lib; { 40 description = "Service identity verification for pyOpenSSL"; 41 homepage = "https://service-identity.readthedocs.io"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}