1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 fetchFromGitHub,
6 gssapi,
7 impacket,
8 ldap3-bleeding-edge,
9 lxml,
10 pyasn1,
11 pycryptodome,
12 pythonOlder,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "pywerview";
18 version = "0.7.1";
19 pyproject = true;
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchFromGitHub {
24 owner = "the-useless-one";
25 repo = "pywerview";
26 rev = "refs/tags/v${version}";
27 hash = "sha256-Mi06l6D3DSkz27resq9KingaXHK+lKn3W5VBLQahLO8=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 beautifulsoup4
34 gssapi
35 impacket
36 ldap3-bleeding-edge
37 lxml
38 pycryptodome
39 pyasn1
40 ];
41
42 # Module has no tests
43 doCheck = false;
44
45 pythonImportsCheck = [ "pywerview" ];
46
47 meta = with lib; {
48 description = "Module for PowerSploit's PowerView support";
49 homepage = "https://github.com/the-useless-one/pywerview";
50 changelog = "https://github.com/the-useless-one/pywerview/releases/tag/v${version}";
51 license = licenses.gpl3Plus;
52 maintainers = with maintainers; [ fab ];
53 mainProgram = "pywerview";
54 };
55}