1{ 2 lib, 3 attrs, 4 buildPythonPackage, 5 cryptography, 6 fetchFromGitHub, 7 hatch-fancy-pypi-readme, 8 hatch-vcs, 9 hatchling, 10 idna, 11 pyasn1, 12 pyasn1-modules, 13 pytestCheckHook, 14 pythonOlder, 15 pyopenssl, 16}: 17 18buildPythonPackage rec { 19 pname = "service-identity"; 20 version = "24.2.0"; 21 format = "pyproject"; 22 23 disabled = pythonOlder "3.8"; 24 25 src = fetchFromGitHub { 26 owner = "pyca"; 27 repo = "service-identity"; 28 tag = version; 29 hash = "sha256-onxCUWqGVeenLqB5lpUpj3jjxTM61ogXCQOGnDnClT4="; 30 }; 31 32 nativeBuildInputs = [ 33 hatch-fancy-pypi-readme 34 hatch-vcs 35 hatchling 36 ]; 37 38 propagatedBuildInputs = [ 39 attrs 40 cryptography 41 idna 42 pyasn1 43 pyasn1-modules 44 ]; 45 46 checkInputs = [ pyopenssl ]; 47 48 nativeCheckInputs = [ pytestCheckHook ]; 49 50 pythonImportsCheck = [ "service_identity" ]; 51 52 meta = with lib; { 53 description = "Service identity verification for pyOpenSSL"; 54 homepage = "https://service-identity.readthedocs.io"; 55 changelog = "https://github.com/pyca/service-identity/releases/tag/${version}"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}