nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1# This older version only exists because `ceph` needs it, see its package.
2{
3 lib,
4 buildPythonPackage,
5 cryptography,
6 fetchPypi,
7 idna,
8 pyopenssl,
9 pytestCheckHook,
10 service-identity,
11}:
12
13buildPythonPackage rec {
14 pname = "trustme";
15 version = "1.1.0";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-U3Wtf7QnB0vslWWS4NTuKkz02miTThukvPQhcSa8ReY=";
21 };
22
23 propagatedBuildInputs = [
24 cryptography
25 idna
26 ];
27
28 nativeCheckInputs = [
29 pyopenssl
30 pytestCheckHook
31 service-identity
32 ];
33
34 # Some of the tests use localhost networking.
35 __darwinAllowLocalNetworking = true;
36
37 pythonImportsCheck = [ "trustme" ];
38
39 meta = {
40 description = "High quality TLS certs while you wait, for the discerning tester";
41 homepage = "https://github.com/python-trio/trustme";
42 changelog = "https://trustme.readthedocs.io/en/latest/#change-history";
43 license = with lib.licenses; [
44 mit
45 asl20
46 ];
47 maintainers = with lib.maintainers; [ jfly ];
48 };
49}