1{ lib
2, python3
3, fetchFromGitHub
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "ghauri";
8 version = "1.3.2";
9 format = "setuptools";
10
11 src = fetchFromGitHub {
12 owner = "r0oth3x49";
13 repo = "ghauri";
14 rev = "refs/tags/${version}";
15 hash = "sha256-zd+Uf2t8yBWi07+BJYYYQ+4fIissuBdXjj877ul4gAQ=";
16 };
17
18 propagatedBuildInputs = with python3.pkgs; [
19 chardet
20 colorama
21 requests
22 tldextract
23 ];
24
25 # Project has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "ghauri"
30 ];
31
32 meta = with lib; {
33 description = "Tool for detecting and exploiting SQL injection security flaws";
34 mainProgram = "ghauri";
35 homepage = "https://github.com/r0oth3x49/ghauri";
36 changelog = "https://github.com/r0oth3x49/ghauri/releases/tag/${version}";
37 license = licenses.mit;
38 maintainers = with maintainers; [ fab ];
39 };
40}