mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
47 lines
909 B
Nix
47 lines
909 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, cryptography
|
|
, futures ? null
|
|
, pyopenssl
|
|
, service-identity
|
|
, pytestCheckHook
|
|
, idna
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trustme";
|
|
version = "0.9.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-XgeyPXDO7WTzuzauS5q8UjVMFsmNRasDe+4rX7/+WGw=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pyopenssl
|
|
pytestCheckHook
|
|
service-identity
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
idna
|
|
] ++ lib.optionals (!isPy3k) [
|
|
futures
|
|
];
|
|
|
|
# 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";
|
|
license = with licenses; [ mit asl20 ];
|
|
maintainers = with maintainers; [ catern ];
|
|
};
|
|
}
|