depot/pkgs/by-name/po/powerhub/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

64 lines
1.3 KiB
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "powerhub";
version = "2.0.7";
pyproject = true;
src = fetchFromGitHub {
owner = "AdrianVollmer";
repo = "PowerHub";
rev = "refs/tags/${version}";
hash = "sha256-ejdG/vMINyvToP8GAhRMdp/Jq8rZNBubDbRcg2i05lM=";
};
nativeBuildInputs = with python3.pkgs; [
setuptools
setuptools-scm
];
propagatedBuildInputs = with python3.pkgs; [
cheroot
cryptography
dnspython
flask
flask-socketio
flask-sqlalchemy
importlib-metadata
jinja2
pyopenssl
python-magic
python-socketio
requests
service-identity
simple-websocket
sqlalchemy
twisted
watchdog
werkzeug
wsgidav
];
# Tests uses XDG
doCheck = false;
pythonImportsCheck = [
"powerhub"
];
preCheck = ''
cd tests/helpers
'';
meta = with lib; {
description = "Post exploitation tool based on a web application, focusing on bypassing endpoint protection and application whitelisting";
homepage = "https://github.com/AdrianVollmer/PowerHub";
changelog = "https://github.com/AdrianVollmer/PowerHub/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "powerhub";
};
}