1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/trustme/default.nix

49 lines
884 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, cryptography
, futures
, pytest
, pyopenssl
, service-identity
, idna
}:
2018-05-11 17:38:30 +01:00
buildPythonPackage rec {
pname = "trustme";
2019-11-11 11:13:42 +00:00
version = "0.5.3";
2018-05-11 17:38:30 +01:00
src = fetchPypi {
inherit pname version;
2019-11-11 11:13:42 +00:00
sha256 = "f0f96a21b430cc29661644d3569a1112a397ca9cc8595b964d4ae71e5e957529";
2018-05-11 17:38:30 +01:00
};
checkInputs = [
pytest
pyopenssl
service-identity
];
2018-05-11 17:38:30 +01:00
propagatedBuildInputs = [
cryptography
idna
2018-06-04 05:06:09 +01:00
] ++ lib.optionals (!isPy3k) [
futures
2018-05-11 17:38:30 +01:00
];
checkPhase = ''
pytest
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
2018-05-11 17:38:30 +01:00
meta = {
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 ];
};
}