2018-06-04 05:06:09 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, cryptography, futures, pytest, pyopenssl, service-identity }:
|
2018-05-11 17:38:30 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "trustme";
|
2019-04-16 18:15:41 +01:00
|
|
|
version = "0.5.1";
|
2018-05-11 17:38:30 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 18:15:41 +01:00
|
|
|
sha256 = "8d12837c6242afe1660dee08d44d96f40c9a5074cc58caf39f8c8fdf4b526529";
|
2018-05-11 17:38:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest pyopenssl service-identity ];
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
2018-06-04 05:06:09 +01:00
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
futures
|
2018-05-11 17:38:30 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|