3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/sqlmap/default.nix

36 lines
944 B
Nix
Raw Normal View History

2017-08-25 10:22:30 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, stdenv
, file
2017-08-25 10:22:30 +01:00
}:
buildPythonPackage rec {
pname = "sqlmap";
version = "1.4.7";
2017-08-25 10:22:30 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "0096vrdnax467vl0xl4m0z9pqddl9dhvk6gyryx6gvaslrvn2j26";
2017-08-25 10:22:30 +01:00
};
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
'';
2017-08-25 10:22:30 +01:00
# No tests in archive
doCheck = false;
meta = with lib; {
homepage = "http://sqlmap.org";
license = licenses.gpl2;
description = "Automatic SQL injection and database takeover tool";
maintainers = with maintainers; [ bennofs ];
};
}