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 name = "${pname}-${version}"; 17 18 19 src = fetchFromGitHub { 20 owner = "pyca"; 21 repo = pname; 22 rev = version; 23 sha256 = "1fn332fci776m5a7jx8c1jgbm27160ip5qvv8p01c242ag6by5g0"; 24 }; 25 26 propagatedBuildInputs = [ 27 characteristic pyasn1 pyasn1-modules pyopenssl idna attrs 28 ]; 29 30 checkInputs = [ pytest ]; 31 checkPhase = "py.test"; 32 33 meta = with lib; { 34 description = "Service identity verification for pyOpenSSL"; 35 license = licenses.mit; 36 homepage = "https://service-identity.readthedocs.io"; 37 }; 38}