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