1{ lib, buildPythonPackage, fetchPypi, isPy3k, cryptography, futures, pytest, pyopenssl, service-identity }: 2 3buildPythonPackage rec { 4 pname = "trustme"; 5 version = "0.4.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1215vr6l6c0fzsv5gyay82fxd4fidvq2rd94wvjrljs6h2wajazk"; 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}