2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
httpx,
|
|
|
|
pyopenssl,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
trustme,
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "truststore";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.9.1";
|
|
|
|
pyproject = true;
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sethmlarson";
|
2024-06-05 15:53:02 +00:00
|
|
|
repo = "truststore";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-BP88oQ363XFuRMKZqW8wSm1wl5upU+yEgmwktv65JOU=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ flit-core ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2023-08-22 20:05:09 +00:00
|
|
|
aiohttp
|
|
|
|
httpx
|
|
|
|
pyopenssl
|
|
|
|
requests
|
|
|
|
trustme
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# Tests requires networking
|
2023-08-22 20:05:09 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "truststore" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Verify certificates using native system trust stores";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/sethmlarson/truststore";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/sethmlarson/truststore/blob/v${version}/CHANGELOG.md";
|
2023-08-22 20:05:09 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ anthonyroussel ];
|
|
|
|
};
|
|
|
|
}
|