Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 956 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, stdenv 5, file 6}: 7 8buildPythonPackage rec { 9 pname = "sqlmap"; 10 version = "1.4.8"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "af789cc2d9b7cab2f71087967867b3587db9636b38bef1ffb39165a0675a6d87"; 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 meta = with lib; { 30 homepage = "http://sqlmap.org"; 31 license = licenses.gpl2; 32 description = "Automatic SQL injection and database takeover tool"; 33 maintainers = with maintainers; [ bennofs ]; 34 }; 35}