2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2017-12-25 18:43:22 +00:00
|
|
|
, fetchFromGitHub
|
2017-09-05 10:16:41 +01:00
|
|
|
, characteristic
|
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
|
|
|
, pyopenssl
|
|
|
|
, idna
|
|
|
|
, attrs
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "service_identity";
|
|
|
|
version = "17.0.0";
|
|
|
|
|
2017-12-25 18:43:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyca";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1fn332fci776m5a7jx8c1jgbm27160ip5qvv8p01c242ag6by5g0";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
characteristic pyasn1 pyasn1-modules pyopenssl idna attrs
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|