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