Files
nixpkgs/pkgs/development/python-modules/notus-scanner/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
paho-mqtt,
poetry-core,
psutil,
pytestCheckHook,
python-gnupg,
pythonOlder,
sentry-sdk,
tomli,
}:
buildPythonPackage rec {
pname = "notus-scanner";
version = "22.7.2";
pyproject = true;
src = fetchFromGitHub {
owner = "greenbone";
repo = "notus-scanner";
tag = "v${version}";
hash = "sha256-JKDnqgEBzEIOI3WIh+SOycACFaYZoZHy7tPFirltDiM=";
};
pythonRelaxDeps = [
"packaging"
"psutil"
"python-gnupg"
];
build-system = [ poetry-core ];
propagatedBuildInputs = [
paho-mqtt
psutil
python-gnupg
sentry-sdk
]
++ lib.optionals (pythonOlder "3.11") [ tomli ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "notus.scanner" ];
meta = {
description = "Helper to create results from local security checks";
homepage = "https://github.com/greenbone/notus-scanner";
changelog = "https://github.com/greenbone/notus-scanner/releases/tag/${src.tag}";
license = with lib.licenses; [ agpl3Plus ];
maintainers = with lib.maintainers; [ fab ];
};
}