5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
49 lines
990 B
Nix
49 lines
990 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchPypi
|
|
, idna
|
|
, pyopenssl
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, service-identity
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trustme";
|
|
version = "1.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-U3Wtf7QnB0vslWWS4NTuKkz02miTThukvPQhcSa8ReY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
idna
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pyopenssl
|
|
pytestCheckHook
|
|
service-identity
|
|
];
|
|
|
|
# Some of the tests use localhost networking.
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [
|
|
"trustme"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "High quality TLS certs while you wait, for the discerning tester";
|
|
homepage = "https://github.com/python-trio/trustme";
|
|
changelog = "https://trustme.readthedocs.io/en/latest/#change-history";
|
|
license = with licenses; [ mit asl20 ];
|
|
maintainers = with maintainers; [ catern ];
|
|
};
|
|
}
|