dput-ng: fix eval (#364540)
[NixPkgs.git] / pkgs / by-name / po / powerhub / package.nix
blob62305f6fa07a4cf21674c8f08294bd1ff430317c
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "powerhub";
9   version = "2.0.7";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "AdrianVollmer";
14     repo = "PowerHub";
15     rev = "refs/tags/${version}";
16     hash = "sha256-ejdG/vMINyvToP8GAhRMdp/Jq8rZNBubDbRcg2i05lM=";
17   };
19   nativeBuildInputs = with python3.pkgs; [
20     setuptools
21     setuptools-scm
22   ];
24   propagatedBuildInputs = with python3.pkgs; [
25     cheroot
26     cryptography
27     dnspython
28     flask
29     flask-socketio
30     flask-sqlalchemy
31     importlib-metadata
32     jinja2
33     pyopenssl
34     python-magic
35     python-socketio
36     requests
37     service-identity
38     simple-websocket
39     sqlalchemy
40     twisted
41     watchdog
42     werkzeug
43     wsgidav
44   ];
46   # Tests uses XDG
47   doCheck = false;
49   pythonImportsCheck = [
50     "powerhub"
51   ];
53   preCheck = ''
54     cd tests/helpers
55   '';
57   meta = with lib; {
58     description = "Post exploitation tool based on a web application, focusing on bypassing endpoint protection and application whitelisting";
59     homepage = "https://github.com/AdrianVollmer/PowerHub";
60     changelog = "https://github.com/AdrianVollmer/PowerHub/blob/${version}/CHANGELOG.md";
61     license = licenses.mit;
62     maintainers = with maintainers; [ fab ];
63     mainProgram = "powerhub";
64   };