Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 28 lines 755 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k, cryptography, futures, pytest, pyopenssl, service-identity }: 2 3buildPythonPackage rec { 4 pname = "trustme"; 5 version = "0.5.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "89b8d689013afeaa34b63e77f6d60eebad63edc4b247e744c7d6d891ed13a564"; 10 }; 11 12 checkInputs = [ pytest pyopenssl service-identity ]; 13 checkPhase = '' 14 py.test 15 ''; 16 propagatedBuildInputs = [ 17 cryptography 18 ] ++ lib.optionals (!isPy3k) [ 19 futures 20 ]; 21 22 meta = { 23 description = "#1 quality TLS certs while you wait, for the discerning tester"; 24 homepage = https://github.com/python-trio/trustme; 25 license = with lib.licenses; [ mit asl20 ]; 26 maintainers = with lib.maintainers; [ catern ]; 27 }; 28}