mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / certomancer / default.nix
blob5e70f24eeddaf0d17336e9bc7d2bbebaa4459721
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   # build-system
7   setuptools,
8   wheel,
9   # dependencies
10   asn1crypto,
11   click,
12   cryptography,
13   python-dateutil,
14   pyyaml,
15   tzlocal,
16   # optional-dependencies
17   requests-mock,
18   jinja2,
19   werkzeug,
20   python-pkcs11,
21   # nativeCheckInputs
22   freezegun,
23   pyhanko-certvalidator,
24   pytest-aiohttp,
25   pytestCheckHook,
26   pytz,
27   requests,
30 buildPythonPackage rec {
31   pname = "certomancer";
32   version = "0.12.3";
33   pyproject = true;
35   disabled = pythonOlder "3.7";
37   src = fetchFromGitHub {
38     owner = "MatthiasValvekens";
39     repo = "certomancer";
40     rev = "refs/tags/v${version}";
41     hash = "sha256-2BjLoGUWU0RaWVI9JA3s/Hf5aVtmv8hn+fB2jkWdQNY=";
42   };
44   build-system = [
45     setuptools
46     wheel
47   ];
49   dependencies = [
50     asn1crypto
51     click
52     cryptography
53     python-dateutil
54     pyyaml
55     tzlocal
56   ];
58   optional-dependencies = {
59     requests-mocker = [ requests-mock ];
60     web-api = [
61       jinja2
62       werkzeug
63     ];
64     pkcs11 = [ python-pkcs11 ];
65   };
67   nativeCheckInputs = [
68     freezegun
69     pyhanko-certvalidator
70     pytest-aiohttp
71     pytestCheckHook
72     pytz
73     requests
74   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
76   pythonImportsCheck = [ "certomancer" ];
78   meta = {
79     description = "Quickly construct, mock & deploy PKI test configurations using simple declarative configuration";
80     mainProgram = "certomancer";
81     homepage = "https://github.com/MatthiasValvekens/certomancer";
82     license = lib.licenses.mit;
83     maintainers = [ ];
84   };