1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, characteristic 5, pyasn1 6, pyasn1-modules 7, pyopenssl 8, idna 9, attrs 10, pytest 11}: 12 13buildPythonPackage rec { 14 pname = "service_identity"; 15 version = "17.0.0"; 16 17 src = fetchFromGitHub { 18 owner = "pyca"; 19 repo = pname; 20 rev = version; 21 sha256 = "1fn332fci776m5a7jx8c1jgbm27160ip5qvv8p01c242ag6by5g0"; 22 }; 23 24 propagatedBuildInputs = [ 25 characteristic pyasn1 pyasn1-modules pyopenssl idna attrs 26 ]; 27 28 checkInputs = [ pytest ]; 29 checkPhase = "py.test"; 30 31 meta = with lib; { 32 description = "Service identity verification for pyOpenSSL"; 33 license = licenses.mit; 34 homepage = https://service-identity.readthedocs.io; 35 }; 36}