forked from mirrors/nixpkgs
Merge pull request #129886 from fabaff/bump-service-identity
python3Packages.service-identity: 18.1.0 -> 21.1.0
This commit is contained in:
commit
4174275a85
|
@ -1,37 +1,47 @@
|
|||
{ lib
|
||||
, attrs
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, idna
|
||||
, ipaddress
|
||||
, pyasn1
|
||||
, pyasn1-modules
|
||||
, idna
|
||||
, attrs
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "service_identity";
|
||||
version = "18.1.0";
|
||||
pname = "service-identity";
|
||||
version = "21.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyca";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1aw475ksmd4vpl8cwfdcsw2v063nbhnnxpy633sb75iqp9aazhlx";
|
||||
sha256 = "sha256-pWc2rU3ULqEukMhd1ySY58lTm3s8f/ayQ7CY4nG24AQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyasn1 pyasn1-modules idna attrs cryptography
|
||||
] ++ lib.optionals (pythonOlder "3.3") [ ipaddress ];
|
||||
attrs
|
||||
cryptography
|
||||
idna
|
||||
pyasn1
|
||||
pyasn1-modules
|
||||
] ++ lib.optionals (pythonOlder "3.3") [
|
||||
ipaddress
|
||||
];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = "py.test";
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "service_identity" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Service identity verification for pyOpenSSL";
|
||||
license = licenses.mit;
|
||||
homepage = "https://service-identity.readthedocs.io";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue