From b7da4371dfc0267ad8f8ebe73bda6f77b8b7995b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Mar 2023 09:45:00 +0100 Subject: [PATCH] python310Packages.pyexploitdb: init at 0.2.9 --- .../python-modules/pyexploitdb/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/pyexploitdb/default.nix diff --git a/pkgs/development/python-modules/pyexploitdb/default.nix b/pkgs/development/python-modules/pyexploitdb/default.nix new file mode 100644 index 000000000000..c59205aa3f1a --- /dev/null +++ b/pkgs/development/python-modules/pyexploitdb/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchPypi +, gitpython +, pytestCheckHook +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "pyexploitdb"; + version = "0.2.9"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "pyExploitDb"; + inherit version; + hash = "sha256-q16YB0lLlw9nXohcT20l41Bv40CqshWzE8nVBBSEppE="; + }; + + propagatedBuildInputs = [ + gitpython + requests + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "pyExploitDb" + ]; + + meta = with lib; { + description = "Library to fetch the most recent exploit-database"; + homepage = "https://github.com/GoVanguard/pyExploitDb"; + changelog = "https://github.com/GoVanguard/pyExploitDb/blob/master/Changelog.txt"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2b8cc7341e01..fa6ac818f93f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8077,6 +8077,8 @@ self: super: with self; { pyexcel-xls = callPackage ../development/python-modules/pyexcel-xls { }; + pyexploitdb = callPackage ../development/python-modules/pyexploitdb { }; + pyezviz = callPackage ../development/python-modules/pyezviz { }; pyface = callPackage ../development/python-modules/pyface { };