From ee3702bff257b954b3375b93dbf2f2ad6bf89193 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 10 Apr 2024 12:46:50 +0200 Subject: [PATCH] appthreat-depscan: rename to dep-scan --- .../tools/appthreat-depscan/default.nix | 53 ------------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 - 3 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 pkgs/development/tools/appthreat-depscan/default.nix diff --git a/pkgs/development/tools/appthreat-depscan/default.nix b/pkgs/development/tools/appthreat-depscan/default.nix deleted file mode 100644 index f9bed90f8ba43..0000000000000 --- a/pkgs/development/tools/appthreat-depscan/default.nix +++ /dev/null @@ -1,53 +0,0 @@ -{ lib -, fetchFromGitHub -, python3 -}: - -python3.pkgs.buildPythonApplication rec { - pname = "appthreat-depscan"; - version = "3.6.0"; - - src = fetchFromGitHub { - owner = "AppThreat"; - repo = "dep-scan"; - rev = "refs/tags/v${version}"; - hash = "sha256-U8vHwdL1O54X0jPhcjTN/J1U7dKQgFEMfc6lbXe2Ff0="; - }; - - propagatedBuildInputs = with python3.pkgs; [ - appthreat-vulnerability-db - defusedxml - pyyaml - rich - ]; - - nativeCheckInputs = with python3.pkgs; [ - pytestCheckHook - ]; - - postPatch = '' - substituteInPlace pytest.ini \ - --replace " --cov-append --cov-report term --cov depscan" "" - ''; - - preCheck = '' - export HOME=$(mktemp -d); - ''; - - disabledTests = [ - # Assertion Error - "test_query_metadata2" - ]; - - pythonImportsCheck = [ - "depscan" - ]; - - meta = with lib; { - description = "Tool to audit dependencies based on known vulnerabilities and advisories"; - homepage = "https://github.com/AppThreat/dep-scan"; - changelog = "https://github.com/AppThreat/dep-scan/releases/tag/v${version}"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ fab ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 8e9d506706d80..c8c8b0dd4b6f9 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -76,6 +76,7 @@ mapAliases ({ ansible_2_13 = throw "Ansible 2.13 goes end of life in 2023/11"; # Added 2023-12-30 apacheAnt_1_9 = throw "Ant 1.9 has been removed since it's not used in nixpkgs anymore"; # Added 2023-11-12 antimicroX = antimicrox; # Added 2021-10-31 + appthreat-depscan = dep-scan; # Added 2024-04-10 arcanPackages = throw "arcanPackages was removed and its sub-attributes were promoted to top-level"; # Added 2023-11-26 archiveopteryx = throw "archiveopteryx depended on an unsupported version of OpenSSL and was unmaintained"; # Added 2024-01-03 ardour_6 = throw "ardour_6 has been removed in favor of newer versions"; # Added 2023-10-13 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db8d02340712c..5f8dd6add8822 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -299,8 +299,6 @@ with pkgs; melange = callPackage ../development/tools/melange { }; - appthreat-depscan = callPackage ../development/tools/appthreat-depscan { }; - activate-linux = callPackage ../applications/misc/activate-linux { }; ansi = callPackage ../development/tools/ansi { };