nixpkgs/pkgs/development/python-modules/trustme/default.nix

29 lines
743 B
Nix
Raw Normal View History

2018-06-04 04:06:09 +00:00
{ lib, buildPythonPackage, fetchPypi, isPy3k, cryptography, futures, pytest, pyopenssl, service-identity }:
2018-05-11 16:38:30 +00:00
buildPythonPackage rec {
pname = "trustme";
version = "0.5.2";
2018-05-11 16:38:30 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "103f8n0c60593r0z8hh1zvk1bagxwnhrv3203xpiiddwqxalr04b";
2018-05-11 16:38:30 +00:00
};
checkInputs = [ pytest pyopenssl service-identity ];
checkPhase = ''
py.test
'';
propagatedBuildInputs = [
cryptography
2018-06-04 04:06:09 +00:00
] ++ lib.optionals (!isPy3k) [
futures
2018-05-11 16:38:30 +00:00
];
meta = {
description = "#1 quality TLS certs while you wait, for the discerning tester";
homepage = https://github.com/python-trio/trustme;
license = with lib.licenses; [ mit asl20 ];
maintainers = with lib.maintainers; [ catern ];
};
}