about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/ghost/default.nix
blob: 124caef45c20939d00c7be1d9be6f31810324487 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "ghost";
  version = "8.0.0";

  disabled = python3.pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "EntySec";
    repo = "Ghost";
    rev = version;
    sha256 = "13p3inw7v55na8438awr692v9vb7zgf5ggxpha9r3m8vfm3sb4iz";
  };

  propagatedBuildInputs = with python3.pkgs; [
    adb-shell
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "ghost" ];

  meta = with lib; {
    description = "Android post-exploitation framework";
    homepage = "https://github.com/EntySec/ghost";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}