depot/third_party/nixpkgs/pkgs/development/python-modules/service_identity/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

37 lines
745 B
Nix

{ 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";
};
}