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