11 buildPythonPackage rec {
16 disabled = pythonOlder "3.7";
19 inherit pname version;
20 hash = "sha256-0ARkSUzmrqyRSPl3EXU7NzcnaWf+Zbt4zQZ626gvfEs=";
24 substituteInPlace sqlmap/thirdparty/magic/magic.py --replace "ctypes.util.find_library('magic')" \
25 "'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"
27 # the check for the last update date does not work in Nix,
28 # since the timestamp of the all files in the nix store is reset to the unix epoch
29 echo 'LAST_UPDATE_NAGGING_DAYS = float("inf")' >> sqlmap/lib/core/settings.py
32 build-system = [ setuptools ];
37 pythonImportsCheck = [ "sqlmap" ];
40 description = "Automatic SQL injection and database takeover tool";
41 homepage = "https://sqlmap.org";
42 changelog = "https://github.com/sqlmapproject/sqlmap/releases/tag/${version}";
43 license = licenses.gpl2Plus;
44 maintainers = with maintainers; [ bennofs ];
45 mainProgram = "sqlmap";