depot/third_party/nixpkgs/pkgs/development/python-modules/truststore/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

53 lines
1,007 B
Nix

{ 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 ];
};
}