1{ lib
2, fetchFromGitHub
3, python3
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "trueseeing";
8 version = "2.1.5";
9 format = "flit";
10
11 src = fetchFromGitHub {
12 owner = "alterakey";
13 repo = pname;
14 rev = "v${version}";
15 hash = "sha256-7iQOQ81k2bPBber4ewyvDy82s26j4P3Vv8MzSs04KAw=";
16 };
17
18 nativeBuildInputs = with python3.pkgs; [
19 flit-core
20 ];
21
22 propagatedBuildInputs = with python3.pkgs; [
23 attrs
24 ipython
25 jinja2
26 lxml
27 pypubsub
28 pyyaml
29 docker
30 ];
31
32 postPatch = ''
33 substituteInPlace pyproject.toml \
34 --replace "attrs~=21.4" "attrs>=21.4" \
35 --replace "docker~=5.0.3" "docker"
36 '';
37
38 # Project has no tests
39 doCheck = false;
40
41 pythonImportsCheck = [
42 "trueseeing"
43 ];
44
45 meta = with lib; {
46 description = "Non-decompiling Android vulnerability scanner";
47 homepage = "https://github.com/alterakey/trueseeing";
48 license = with licenses; [ gpl3Plus ];
49 maintainers = with maintainers; [ fab ];
50 };
51}