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.8.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.10"; 20 21 src = fetchFromGitHub { 22 owner = "sethmlarson"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-K11nHzpckNR8pqmgLOo/yCJ2cNQnqPHgjMDPQkpeRkQ="; 26 }; 27 28 nativeBuildInputs = [ flit-core ]; 29 30 propagatedBuildInputs = [ 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 homepage = "https://github.com/sethmlarson/truststore"; 45 description = "Verify certificates using native system trust stores"; 46 changelog = "https://github.com/sethmlarson/truststore/blob/v${version}/CHANGELOG.md"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ anthonyroussel ]; 49 }; 50}