2017-09-05 11:16:41 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2017-12-25 19:43:22 +01:00
|
|
|
, fetchFromGitHub
|
2019-04-25 16:10:08 +02:00
|
|
|
, pythonOlder
|
|
|
|
, cryptography
|
|
|
|
, ipaddress
|
2017-09-05 11:16:41 +02:00
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
|
|
|
, idna
|
|
|
|
, attrs
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "service_identity";
|
2019-04-25 16:10:08 +02:00
|
|
|
version = "18.1.0";
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2017-12-25 19:43:22 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyca";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-04-25 16:10:08 +02:00
|
|
|
sha256 = "1aw475ksmd4vpl8cwfdcsw2v063nbhnnxpy633sb75iqp9aazhlx";
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2019-04-25 16:10:08 +02:00
|
|
|
pyasn1 pyasn1-modules idna attrs cryptography
|
|
|
|
] ++ lib.optionals (pythonOlder "3.3") [ ipaddress ];
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2017-12-25 19:43:22 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = "py.test";
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2017-12-25 19:43:22 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Service identity verification for pyOpenSSL";
|
|
|
|
license = licenses.mit;
|
2018-03-07 00:56:48 +01:00
|
|
|
homepage = https://service-identity.readthedocs.io;
|
2017-12-25 19:43:22 +01:00
|
|
|
};
|
|
|
|
}
|