summary refs log tree commit diff
path: root/pkgs/development/python-modules/service_identity/default.nix
blob: f39dd48232be8c1b3fd7dc5759a2e655166f6311 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, cryptography
, ipaddress
, pyasn1
, pyasn1-modules
, idna
, attrs
, pytest
}:

buildPythonPackage rec {
  pname = "service_identity";
  version = "18.1.0";

  src = fetchFromGitHub {
    owner = "pyca";
    repo = pname;
    rev = version;
    sha256 = "1aw475ksmd4vpl8cwfdcsw2v063nbhnnxpy633sb75iqp9aazhlx";
  };

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

  checkInputs = [ pytest ];
  checkPhase = "py.test";

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