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