2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gssapi
|
|
|
|
, impacket
|
|
|
|
, ldap3
|
|
|
|
, lxml
|
|
|
|
, pyasn1
|
2023-02-02 18:25:31 +00:00
|
|
|
, pycryptodome
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pywerview";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.5.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "the-useless-one";
|
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-0vL1kMg4XRFq1CWR/2x5YYyfjm8YzjJaXkezehsT4hg=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
gssapi
|
|
|
|
impacket
|
|
|
|
ldap3
|
|
|
|
lxml
|
2023-02-02 18:25:31 +00:00
|
|
|
pycryptodome
|
2022-06-16 17:23:12 +00:00
|
|
|
pyasn1
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pywerview"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module for PowerSploit's PowerView support";
|
|
|
|
homepage = "https://github.com/the-useless-one/pywerview";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/the-useless-one/pywerview/releases/tag/v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|