Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 907 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, cryptography 6, futures ? null 7, pyopenssl 8, service-identity 9, pytestCheckHook 10, idna 11}: 12 13buildPythonPackage rec { 14 pname = "trustme"; 15 version = "0.9.0"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-XgeyPXDO7WTzuzauS5q8UjVMFsmNRasDe+4rX7/+WGw="; 20 }; 21 22 nativeCheckInputs = [ 23 pyopenssl 24 pytestCheckHook 25 service-identity 26 ]; 27 28 propagatedBuildInputs = [ 29 cryptography 30 idna 31 ] ++ lib.optionals (!isPy3k) [ 32 futures 33 ]; 34 35 # Some of the tests use localhost networking. 36 __darwinAllowLocalNetworking = true; 37 38 pythonImportsCheck = [ "trustme" ]; 39 40 meta = with lib; { 41 description = "High quality TLS certs while you wait, for the discerning tester"; 42 homepage = "https://github.com/python-trio/trustme"; 43 license = with licenses; [ mit asl20 ]; 44 maintainers = with maintainers; [ catern ]; 45 }; 46}