1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchPypi,
6 hatchling,
7 idna,
8 pyopenssl,
9 pytestCheckHook,
10 pythonOlder,
11 service-identity,
12}:
13
14buildPythonPackage rec {
15 pname = "trustme";
16 version = "1.2.1";
17 pyproject = true;
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-ZSi6K7x/LbQfM4JcjdE+Pj650zS6D5CXE8jDE59K5H8=";
24 };
25
26 build-system = [ hatchling ];
27
28 dependencies = [
29 cryptography
30 idna
31 ];
32
33 nativeCheckInputs = [
34 pyopenssl
35 pytestCheckHook
36 service-identity
37 ];
38
39 # Some of the tests use localhost networking.
40 __darwinAllowLocalNetworking = true;
41
42 pythonImportsCheck = [ "trustme" ];
43
44 meta = with lib; {
45 description = "High quality TLS certs while you wait, for the discerning tester";
46 homepage = "https://github.com/python-trio/trustme";
47 changelog = "https://trustme.readthedocs.io/en/latest/#change-history";
48 license = with licenses; [
49 mit
50 asl20
51 ];
52 maintainers = with maintainers; [ catern ];
53 };
54}