1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, cryptography
6, futures
7, pytest
8, pyopenssl
9, service-identity
10, idna
11}:
12
13buildPythonPackage rec {
14 pname = "trustme";
15 version = "0.5.2";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "103f8n0c60593r0z8hh1zvk1bagxwnhrv3203xpiiddwqxalr04b";
20 };
21
22 checkInputs = [
23 pytest
24 pyopenssl
25 service-identity
26 ];
27
28 propagatedBuildInputs = [
29 cryptography
30 idna
31 ] ++ lib.optionals (!isPy3k) [
32 futures
33 ];
34
35 checkPhase = ''
36 pytest
37 '';
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 license = with lib.licenses; [ mit asl20 ];
43 maintainers = with lib.maintainers; [ catern ];
44 };
45}