2019-07-15 18:05:05 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, cryptography
|
|
|
|
, futures
|
|
|
|
, pytest
|
|
|
|
, pyopenssl
|
|
|
|
, service-identity
|
|
|
|
, idna
|
|
|
|
}:
|
2018-05-11 18:38:30 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "trustme";
|
2019-12-19 20:31:24 +01:00
|
|
|
version = "0.6.0";
|
2018-05-11 18:38:30 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 20:31:24 +01:00
|
|
|
sha256 = "9dfb18b568729d0219f758cddca1a91bab59f62ca41ee0e8acce5e657ec97b6c";
|
2018-05-11 18:38:30 +02:00
|
|
|
};
|
|
|
|
|
2019-07-15 18:05:05 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pyopenssl
|
|
|
|
service-identity
|
|
|
|
];
|
|
|
|
|
2018-05-11 18:38:30 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
2019-07-15 18:05:05 +02:00
|
|
|
idna
|
2018-06-04 06:06:09 +02:00
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
futures
|
2018-05-11 18:38:30 +02:00
|
|
|
];
|
|
|
|
|
2019-07-15 18:05:05 +02:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2019-09-13 18:59:54 +02:00
|
|
|
# Some of the tests use localhost networking.
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2018-05-11 18:38:30 +02:00
|
|
|
meta = {
|
2019-07-15 18:05:05 +02:00
|
|
|
description = "High quality TLS certs while you wait, for the discerning tester";
|
2018-05-11 18:38:30 +02:00
|
|
|
homepage = https://github.com/python-trio/trustme;
|
|
|
|
license = with lib.licenses; [ mit asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|