1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 flit-core,
7 httpx,
8 pyopenssl,
9 pythonOlder,
10 requests,
11 trustme,
12}:
13
14buildPythonPackage rec {
15 pname = "truststore";
16 version = "0.10.4";
17 pyproject = true;
18
19 disabled = pythonOlder "3.10";
20
21 src = fetchFromGitHub {
22 owner = "sethmlarson";
23 repo = "truststore";
24 tag = "v${version}";
25 hash = "sha256-EbwD2YyVA9W9cWEjYvypBJxs6Hbkb/tF2qU/sUNCt5g=";
26 };
27
28 build-system = [ flit-core ];
29
30 dependencies = [
31 aiohttp
32 httpx
33 pyopenssl
34 requests
35 trustme
36 ];
37
38 # Tests requires networking
39 doCheck = false;
40
41 pythonImportsCheck = [ "truststore" ];
42
43 meta = with lib; {
44 description = "Verify certificates using native system trust stores";
45 homepage = "https://github.com/sethmlarson/truststore";
46 changelog = "https://github.com/sethmlarson/truststore/blob/v${version}/CHANGELOG.md";
47 license = licenses.mit;
48 maintainers = with maintainers; [ anthonyroussel ];
49 };
50}