841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
37 lines
998 B
Nix
37 lines
998 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, file
|
|
, stdenv
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sqlmap";
|
|
version = "1.5.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "fc4be53bb7f64b1cc2e8058e7660059d8f5afb9857cc033084953ea615a10305";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace sqlmap/thirdparty/magic/magic.py --replace "ctypes.util.find_library('magic')" \
|
|
"'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
|
|
|
# the check for the last update date does not work in Nix,
|
|
# since the timestamp of the all files in the nix store is reset to the unix epoch
|
|
echo 'LAST_UPDATE_NAGGING_DAYS = float("inf")' >> sqlmap/lib/core/settings.py
|
|
'';
|
|
|
|
# No tests in archive
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "sqlmap" ];
|
|
|
|
meta = with lib; {
|
|
description = "Automatic SQL injection and database takeover tool";
|
|
homepage = "http://sqlmap.org";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ bennofs ];
|
|
};
|
|
}
|