at 23.05-pre 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, file 5, stdenv 6}: 7 8buildPythonPackage rec { 9 pname = "sqlmap"; 10 version = "1.6.11"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "sha256-/zucBRLf5qnRURS0YS3Zv4jxRZYOIGtzPBepQ7a2nvs="; 15 }; 16 17 postPatch = '' 18 substituteInPlace sqlmap/thirdparty/magic/magic.py --replace "ctypes.util.find_library('magic')" \ 19 "'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'" 20 21 # the check for the last update date does not work in Nix, 22 # since the timestamp of the all files in the nix store is reset to the unix epoch 23 echo 'LAST_UPDATE_NAGGING_DAYS = float("inf")' >> sqlmap/lib/core/settings.py 24 ''; 25 26 # No tests in archive 27 doCheck = false; 28 29 pythonImportsCheck = [ "sqlmap" ]; 30 31 meta = with lib; { 32 description = "Automatic SQL injection and database takeover tool"; 33 homepage = "https://sqlmap.org"; 34 changelog = "https://github.com/sqlmapproject/sqlmap/releases/tag/${version}"; 35 license = licenses.gpl2Plus; 36 maintainers = with maintainers; [ bennofs ]; 37 }; 38}