nixpkgs/pkgs/development/python-modules/service-identity/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

46 lines
792 B
Nix

{ lib
, attrs
, buildPythonPackage
, cryptography
, fetchFromGitHub
, idna
, pyasn1
, pyasn1-modules
, six
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "service-identity";
version = "21.1.0";
src = fetchFromGitHub {
owner = "pyca";
repo = pname;
rev = version;
hash = "sha256-pWc2rU3ULqEukMhd1ySY58lTm3s8f/ayQ7CY4nG24AQ=";
};
propagatedBuildInputs = [
attrs
cryptography
idna
pyasn1
pyasn1-modules
six
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "service_identity" ];
meta = with lib; {
description = "Service identity verification for pyOpenSSL";
homepage = "https://service-identity.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}