2021-09-07 00:35:22 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-09-23 23:54:37 +02:00
|
|
|
, poetry-core
|
2021-09-07 00:35:22 +02:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, colorful
|
|
|
|
, tomlkit
|
|
|
|
, git
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pontos";
|
2021-11-02 09:58:54 +01:00
|
|
|
version = "21.11.0";
|
2021-09-07 00:35:22 +02:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greenbone";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-02 09:58:54 +01:00
|
|
|
sha256 = "sha256-uP4M1ShhKsvqnUixc3JUJVpNQOwYn8Gm2uWVcXhFKLg=";
|
2021-09-07 00:35:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-09-23 23:54:37 +02:00
|
|
|
poetry-core
|
2021-09-07 00:35:22 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
colorful
|
|
|
|
tomlkit
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
git
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Signing fails
|
|
|
|
"test_find_no_signing_key"
|
|
|
|
"test_find_signing_key"
|
|
|
|
"test_find_unreleased_information"
|
2021-10-08 08:36:18 +02:00
|
|
|
# CLI test fails
|
|
|
|
"test_missing_cmd"
|
2021-09-07 00:35:22 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pontos" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Collection of Python utilities, tools, classes and functions";
|
|
|
|
homepage = "https://github.com/greenbone/pontos";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|