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