1{ lib 2, buildPythonPackage 3, cryptography 4, fetchPypi 5, idna 6, pyopenssl 7, pytestCheckHook 8, pythonOlder 9, service-identity 10}: 11 12buildPythonPackage rec { 13 pname = "trustme"; 14 version = "1.1.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-U3Wtf7QnB0vslWWS4NTuKkz02miTThukvPQhcSa8ReY="; 22 }; 23 24 propagatedBuildInputs = [ 25 cryptography 26 idna 27 ]; 28 29 nativeCheckInputs = [ 30 pyopenssl 31 pytestCheckHook 32 service-identity 33 ]; 34 35 # Some of the tests use localhost networking. 36 __darwinAllowLocalNetworking = true; 37 38 pythonImportsCheck = [ 39 "trustme" 40 ]; 41 42 meta = with lib; { 43 description = "High quality TLS certs while you wait, for the discerning tester"; 44 homepage = "https://github.com/python-trio/trustme"; 45 changelog = "https://trustme.readthedocs.io/en/latest/#change-history"; 46 license = with licenses; [ mit asl20 ]; 47 maintainers = with maintainers; [ catern ]; 48 }; 49}