Diff: https://github.com/greenbone/pontos/compare/refs/tags/v23.7.6...v23.7.7 Changelog: https://github.com/greenbone/pontos/releases/tag/v23.7.7
84 lines
1.6 KiB
Nix
84 lines
1.6 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, colorful
|
|
, fetchFromGitHub
|
|
, git
|
|
, httpx
|
|
, lxml
|
|
, packaging
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, semver
|
|
, rich
|
|
, tomlkit
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pontos";
|
|
version = "23.7.7";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greenbone";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-qaeVQQmgEfuQ46us2l74W2yWZnUzePyT8+f5JQR0RdM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
colorful
|
|
httpx
|
|
lxml
|
|
packaging
|
|
python-dateutil
|
|
semver
|
|
rich
|
|
typing-extensions
|
|
tomlkit
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
typing-extensions
|
|
] ++ httpx.optional-dependencies.http2;
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
"PrepareTestCase"
|
|
# Signing fails
|
|
"test_find_no_signing_key"
|
|
"test_find_signing_key"
|
|
"test_find_unreleased_information"
|
|
# CLI test fails
|
|
"test_missing_cmd"
|
|
"test_update_file_changed"
|
|
# Network access
|
|
"test_fail_sign_on_upload_fail"
|
|
"test_successfully_sign"
|
|
# calls git log, but our fetcher removes .git
|
|
"test_git_error"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pontos"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Collection of Python utilities, tools, classes and functions";
|
|
homepage = "https://github.com/greenbone/pontos";
|
|
changelog = "https://github.com/greenbone/pontos/releases/tag/v${version}";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|