depot/third_party/nixpkgs/pkgs/development/python-modules/truststore/default.nix

54 lines
1,007 B
Nix
Raw Normal View History

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, flit-core
, httpx
, pyopenssl
, pythonOlder
, requests
, trustme
}:
buildPythonPackage rec {
pname = "truststore";
version = "0.8.0";
format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "sethmlarson";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-K11nHzpckNR8pqmgLOo/yCJ2cNQnqPHgjMDPQkpeRkQ=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
aiohttp
httpx
pyopenssl
requests
trustme
];
# tests requires networking
doCheck = false;
pythonImportsCheck = [
"truststore"
];
meta = with lib; {
homepage = "https://github.com/sethmlarson/truststore";
description = "Verify certificates using native system trust stores";
changelog = "https://github.com/sethmlarson/truststore/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ anthonyroussel ];
};
}