Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 51 lines 1.1 kB view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, isPy3k 6, cryptography 7, futures ? null 8, pyopenssl 9, service-identity 10, pytestCheckHook 11, idna 12}: 13 14buildPythonPackage rec { 15 pname = "trustme"; 16 version = "0.7.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "1fde1dd27052ab5e5693e1fbe3ba091a6496daf1125409d73232561145fca369"; 21 }; 22 23 checkInputs = [ 24 pyopenssl 25 service-identity 26 pytestCheckHook 27 ]; 28 29 propagatedBuildInputs = [ 30 cryptography 31 idna 32 ] ++ lib.optionals (!isPy3k) [ 33 futures 34 ]; 35 36 # aarch64-darwin forbids W+X memory, but this tests depends on it: 37 # * https://github.com/pyca/pyopenssl/issues/873 38 disabledTests = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ 39 "test_pyopenssl_end_to_end" 40 ]; 41 42 # Some of the tests use localhost networking. 43 __darwinAllowLocalNetworking = true; 44 45 meta = { 46 description = "High quality TLS certs while you wait, for the discerning tester"; 47 homepage = "https://github.com/python-trio/trustme"; 48 license = with lib.licenses; [ mit asl20 ]; 49 maintainers = with lib.maintainers; [ catern ]; 50 }; 51}