2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools-scm,
|
|
|
|
wheel,
|
|
|
|
git-versioner,
|
|
|
|
wrapt,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip-system-certs";
|
|
|
|
version = "4.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "pip_system_certs";
|
|
|
|
hash = "sha256-245qMTiNl5XskTmVffGon6UnT7ZhZEVv0JGl0+lMNQw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
|
|
|
git-versioner
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ wrapt ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pip_system_certs.wrapt_requests"
|
|
|
|
"pip_system_certs.bootstrap"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Live patches pip and requests to use system certs by default";
|
|
|
|
homepage = "https://gitlab.com/alelec/pip-system-certs";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ slotThe ];
|
|
|
|
};
|
|
|
|
}
|