{ lib , buildPythonPackage , fetchPypi , isPy3k , cryptography , futures ? null , pytest , pyopenssl , service-identity , idna }: buildPythonPackage rec { pname = "trustme"; version = "0.7.0"; src = fetchPypi { inherit pname version; sha256 = "1fde1dd27052ab5e5693e1fbe3ba091a6496daf1125409d73232561145fca369"; }; checkInputs = [ pytest pyopenssl service-identity ]; propagatedBuildInputs = [ cryptography idna ] ++ lib.optionals (!isPy3k) [ futures ]; checkPhase = '' pytest ''; # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; meta = { description = "High quality TLS certs while you wait, for the discerning tester"; homepage = "https://github.com/python-trio/trustme"; license = with lib.licenses; [ mit asl20 ]; maintainers = with lib.maintainers; [ catern ]; }; }