2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
gitpython,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyexploitdb";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.2.22";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "pyExploitDb";
|
|
|
|
inherit version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-zLGJ8MYfyXrJwy8GywOq9fM9rMMmRTgPrgiByGwQ+gM=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2023-03-04 12:14:45 +00:00
|
|
|
gitpython
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "pyExploitDb" ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to fetch the most recent exploit-database";
|
|
|
|
homepage = "https://github.com/GoVanguard/pyExploitDb";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/GoVanguard/pyExploitDb/blob/master/ChangeLog.md";
|
2023-03-04 12:14:45 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|