2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
colorful,
|
|
|
|
fetchFromGitHub,
|
|
|
|
git,
|
|
|
|
httpx,
|
|
|
|
lxml,
|
|
|
|
packaging,
|
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
semver,
|
|
|
|
shtab,
|
|
|
|
rich,
|
|
|
|
tomlkit,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pontos";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "24.9.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greenbone";
|
2024-01-13 08:15:51 +00:00
|
|
|
repo = "pontos";
|
2022-09-22 12:36:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-CgO88I2M8RGpYyJchXZtqxIBjNaULSqnDgfFCUQDFUw=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2021-09-18 10:52:07 +00:00
|
|
|
colorful
|
2022-08-21 13:32:41 +00:00
|
|
|
httpx
|
2023-05-24 13:37:59 +00:00
|
|
|
lxml
|
2022-02-10 20:34:41 +00:00
|
|
|
packaging
|
2022-12-28 21:21:41 +00:00
|
|
|
python-dateutil
|
2023-03-15 16:39:30 +00:00
|
|
|
semver
|
2024-02-07 01:22:34 +00:00
|
|
|
shtab
|
2022-08-21 13:32:41 +00:00
|
|
|
rich
|
|
|
|
tomlkit
|
2022-11-27 09:42:12 +00:00
|
|
|
] ++ httpx.optional-dependencies.http2;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
git
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2022-08-21 13:32:41 +00:00
|
|
|
"PrepareTestCase"
|
2021-09-18 10:52:07 +00:00
|
|
|
# Signing fails
|
|
|
|
"test_find_no_signing_key"
|
|
|
|
"test_find_signing_key"
|
|
|
|
"test_find_unreleased_information"
|
2021-10-08 15:17:17 +00:00
|
|
|
# CLI test fails
|
|
|
|
"test_missing_cmd"
|
2022-05-18 14:49:53 +00:00
|
|
|
"test_update_file_changed"
|
2022-07-14 12:49:19 +00:00
|
|
|
# Network access
|
|
|
|
"test_fail_sign_on_upload_fail"
|
|
|
|
"test_successfully_sign"
|
2023-07-15 17:15:38 +00:00
|
|
|
# calls git log, but our fetcher removes .git
|
|
|
|
"test_git_error"
|
2023-08-22 20:05:09 +00:00
|
|
|
# Tests require git executable
|
|
|
|
"test_github_action_output"
|
|
|
|
"test_initial_release"
|
2024-01-13 08:15:51 +00:00
|
|
|
# Tests are out-dated
|
|
|
|
"test_getting_version_without_version_config"
|
|
|
|
"test_verify_version_does_not_match"
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pontos" ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Collection of Python utilities, tools, classes and functions";
|
|
|
|
homepage = "https://github.com/greenbone/pontos";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/greenbone/pontos/releases/tag/v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|