841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, cryptography
|
|
, futures ? null
|
|
, pyopenssl
|
|
, service-identity
|
|
, pytestCheckHook
|
|
, idna
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trustme";
|
|
version = "0.8.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3dcfbe186bf33d146347c6180b67564257f2708960027ab6d24fea2865daabca";
|
|
};
|
|
|
|
checkInputs = [
|
|
pyopenssl
|
|
service-identity
|
|
pytestCheckHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
idna
|
|
] ++ lib.optionals (!isPy3k) [
|
|
futures
|
|
];
|
|
|
|
# aarch64-darwin forbids W+X memory, but this tests depends on it:
|
|
# * https://github.com/pyca/pyopenssl/issues/873
|
|
disabledTests = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
|
"test_pyopenssl_end_to_end"
|
|
];
|
|
|
|
# Some of the tests use localhost networking.
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "High quality TLS certs while you wait, for the discerning tester";
|
|
homepage = "https://github.com/python-trio/trustme";
|
|
license = with lib.licenses; [ mit asl20 ];
|
|
maintainers = with lib.maintainers; [ catern ];
|
|
};
|
|
}
|