Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 1.1 kB view raw
1# This older version only exists because `ceph` needs it, see its package. 2{ 3 lib, 4 buildPythonPackage, 5 cryptography, 6 fetchPypi, 7 idna, 8 pyopenssl, 9 pytestCheckHook, 10 pythonOlder, 11 service-identity, 12}: 13 14buildPythonPackage rec { 15 pname = "trustme"; 16 version = "1.1.0"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-U3Wtf7QnB0vslWWS4NTuKkz02miTThukvPQhcSa8ReY="; 24 }; 25 26 propagatedBuildInputs = [ 27 cryptography 28 idna 29 ]; 30 31 nativeCheckInputs = [ 32 pyopenssl 33 pytestCheckHook 34 service-identity 35 ]; 36 37 # Some of the tests use localhost networking. 38 __darwinAllowLocalNetworking = true; 39 40 pythonImportsCheck = [ "trustme" ]; 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; [ 47 mit 48 asl20 49 ]; 50 maintainers = with maintainers; [ jfly ]; 51 }; 52}