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