17 # optional-dependencies
24 pyhanko-certvalidator,
31 buildPythonPackage rec {
32 pname = "certomancer";
36 # https://github.com/MatthiasValvekens/certomancer/issues/12
37 disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
39 src = fetchFromGitHub {
40 owner = "MatthiasValvekens";
42 rev = "refs/tags/v${version}";
43 hash = "sha256-c2Fq4YTHQvhxuZrpKQYZvqHIMfubbkeKV4rctELLeJU=";
60 optional-dependencies = {
61 requests-mocker = [ requests-mock ];
66 pkcs11 = [ python-pkcs11 ];
76 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
79 # pyhanko_certvalidator.errors.DisallowedAlgorithmError
83 pythonImportsCheck = [ "certomancer" ];
86 description = "Quickly construct, mock & deploy PKI test configurations using simple declarative configuration";
87 mainProgram = "certomancer";
88 homepage = "https://github.com/MatthiasValvekens/certomancer";
89 license = lib.licenses.mit;