summary refs log tree commit diff
path: root/pkgs/development/python-modules/service_identity/default.nix
blob: 8ac3b52d58c790ace0e5176484cc420cec1e8d94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ lib
, attrs
, buildPythonPackage
, cryptography
, fetchFromGitHub
, idna
, ipaddress
, pyasn1
, pyasn1-modules
, six
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "service-identity";
  version = "21.1.0";

  src = fetchFromGitHub {
    owner = "pyca";
    repo = pname;
    rev = version;
    sha256 = "sha256-pWc2rU3ULqEukMhd1ySY58lTm3s8f/ayQ7CY4nG24AQ=";
  };

  propagatedBuildInputs = [
    attrs
    cryptography
    idna
    pyasn1
    pyasn1-modules
    six
  ] ++ lib.optionals (pythonOlder "3.3") [
    ipaddress
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "service_identity" ];

  meta = with lib; {
    description = "Service identity verification for pyOpenSSL";
    homepage = "https://service-identity.readthedocs.io";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}