2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
gitpython,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyexploitdb";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.2.27";
|
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-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-XNSTb/vOzesaMCzu5ZLAPFfJ2Nta/hUo/vPbtQJsSd8=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|