nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "powerview";
9 version = "2025.1.1";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "aniqfakhrul";
14 repo = "powerview.py";
15 tag = version;
16 hash = "sha256-kA7vb3YwUlolEnSJRFi+YZoq4yZsdMG+Snk7zsyOCmQ=";
17 };
18
19 pythonRemoveDeps = [
20 "argparse"
21 "future"
22 "flask-basicauth"
23 ];
24
25 build-system = with python3.pkgs; [ setuptools ];
26
27 dependencies = with python3.pkgs; [
28 chardet
29 dnspython
30 dsinternals
31 flask
32 gnureadline
33 impacket
34 ldap3-bleeding-edge
35 mcp
36 pycryptodome
37 python-dateutil
38 requests-ntlm
39 tabulate
40 validators
41 ];
42
43 optional-dependencies = with python3.pkgs; {
44 mcp = [
45 mcp
46 ];
47 };
48
49 pythonImportsCheck = [ "powerview" ];
50
51 meta = {
52 description = "Alternative PowerView.ps1 script in Python";
53 homepage = "https://github.com/aniqfakhrul/powerview.py";
54 changelog = "https://github.com/aniqfakhrul/powerview.py/releases/tag/${src.tag}";
55 license = lib.licenses.mit;
56 maintainers = with lib.maintainers; [ fab ];
57 mainProgram = "powerview";
58 };
59}