1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pytestCheckHook
6, pythonOlder
7, colorful
8, tomlkit
9, git
10, requests
11}:
12
13buildPythonPackage rec {
14 pname = "pontos";
15 version = "21.11.0";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "greenbone";
22 repo = pname;
23 rev = "v${version}";
24 sha256 = "sha256-uP4M1ShhKsvqnUixc3JUJVpNQOwYn8Gm2uWVcXhFKLg=";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 ];
30
31 propagatedBuildInputs = [
32 colorful
33 tomlkit
34 requests
35 ];
36
37 checkInputs = [
38 git
39 pytestCheckHook
40 ];
41
42 disabledTests = [
43 # Signing fails
44 "test_find_no_signing_key"
45 "test_find_signing_key"
46 "test_find_unreleased_information"
47 # CLI test fails
48 "test_missing_cmd"
49 ];
50
51 pythonImportsCheck = [ "pontos" ];
52
53 meta = with lib; {
54 description = "Collection of Python utilities, tools, classes and functions";
55 homepage = "https://github.com/greenbone/pontos";
56 license = with licenses; [ gpl3Plus ];
57 maintainers = with maintainers; [ fab ];
58 };
59}