1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-30 04:55:25 +03:00
nixpkgs/pkgs/development/python-modules/sqlmap/default.nix

38 lines
999 B
Nix
Raw Normal View History

2017-08-25 11:22:30 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, file
2021-03-21 22:46:11 +01:00
, stdenv
2017-08-25 11:22:30 +02:00
}:
buildPythonPackage rec {
pname = "sqlmap";
version = "1.5.11";
2017-08-25 11:22:30 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "196021f0eff1699853675ee80e13bc856c9f1a088d93a0ac023651d2a3f62cf5";
2017-08-25 11:22:30 +02: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 11:22:30 +02:00
# No tests in archive
doCheck = false;
pythonImportsCheck = [ "sqlmap" ];
2017-08-25 11:22:30 +02:00
meta = with lib; {
description = "Automatic SQL injection and database takeover tool";
2021-03-21 22:46:11 +01:00
homepage = "http://sqlmap.org";
license = licenses.gpl2Plus;
2017-08-25 11:22:30 +02:00
maintainers = with maintainers; [ bennofs ];
};
}