mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
75 lines
1.3 KiB
Nix
75 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, colorful
|
|
, fetchFromGitHub
|
|
, git
|
|
, httpx
|
|
, packaging
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, rich
|
|
, tomlkit
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pontos";
|
|
version = "22.9.6";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greenbone";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-CZ2Y3ePRfwj9VbdoQjdQMs9+/cdixkRovGISv9T+pYU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
colorful
|
|
httpx
|
|
packaging
|
|
rich
|
|
tomlkit
|
|
];
|
|
|
|
checkInputs = [
|
|
git
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'packaging = "^20.3"' 'packaging = "*"'
|
|
'';
|
|
|
|
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"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|