2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, asn1crypto
|
|
|
|
, click
|
|
|
|
, oscrypto
|
|
|
|
, pyyaml
|
|
|
|
, python-dateutil
|
|
|
|
, tzlocal
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytz
|
|
|
|
, freezegun
|
|
|
|
, jinja2
|
|
|
|
, pyhanko-certvalidator
|
|
|
|
, requests
|
|
|
|
, requests-mock
|
|
|
|
, werkzeug
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "certomancer";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.9.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
# Tests are only available on GitHub
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MatthiasValvekens";
|
|
|
|
repo = "certomancer";
|
|
|
|
rev = version;
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "4v2e46ZrzhKXpMULj0vmDRoLOypi030eaADAYjLMg5M=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asn1crypto
|
|
|
|
click
|
|
|
|
oscrypto
|
|
|
|
pyyaml
|
|
|
|
python-dateutil
|
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-02-16 17:41:37 +00:00
|
|
|
substituteInPlace setup.py --replace ", 'pytest-runner'" ""
|
2022-04-27 09:35:20 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
freezegun
|
|
|
|
jinja2
|
|
|
|
pyhanko-certvalidator
|
|
|
|
pytest-aiohttp
|
|
|
|
pytz
|
|
|
|
requests
|
|
|
|
requests-mock
|
|
|
|
werkzeug
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "certomancer" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Quickly construct, mock & deploy PKI test configurations using simple declarative configuration";
|
|
|
|
homepage = "https://github.com/MatthiasValvekens/certomancer";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
};
|
|
|
|
}
|