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}: 16 17buildPythonPackage rec { 18 pname = "service-identity"; 19 version = "24.1.0"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchFromGitHub { 25 owner = "pyca"; 26 repo = pname; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-ibi9hls/VnVePv4fF2CyxI22P1RX6QpCwyeENWVPkx4="; 29 }; 30 31 nativeBuildInputs = [ 32 hatch-fancy-pypi-readme 33 hatch-vcs 34 hatchling 35 ]; 36 37 propagatedBuildInputs = [ 38 attrs 39 cryptography 40 idna 41 pyasn1 42 pyasn1-modules 43 ]; 44 45 nativeCheckInputs = [ pytestCheckHook ]; 46 47 pythonImportsCheck = [ "service_identity" ]; 48 49 meta = with lib; { 50 description = "Service identity verification for pyOpenSSL"; 51 homepage = "https://service-identity.readthedocs.io"; 52 changelog = "https://github.com/pyca/service-identity/releases/tag/${version}"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}