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