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