python310Packages.pywerview: init at 0.4.0

This commit is contained in:
Fabian Affolter 2022-06-09 10:05:46 +02:00
parent eba9d69732
commit 332422d410
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,55 @@
{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, gssapi
, impacket
, ldap3
, lxml
, pyasn1
, pythonOlder
}:
buildPythonPackage rec {
pname = "pywerview";
version = "0.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "the-useless-one";
repo = pname;
rev = "v${version}";
hash = "sha256-nrPhyBHW13dkXFC5YJfrkiztAxMw4KuEif0zCdjQEq0=";
};
propagatedBuildInputs = [
beautifulsoup4
gssapi
impacket
ldap3
lxml
pyasn1
];
# Module has no tests
doCheck = false;
postPatch = ''
# https://github.com/the-useless-one/pywerview/pull/51
substituteInPlace setup.py \
--replace "bs4" "beautifulsoup4"
'';
pythonImportsCheck = [
"pywerview"
];
meta = with lib; {
description = "Module for PowerSploit's PowerView support";
homepage = "https://github.com/the-useless-one/pywerview";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -8885,6 +8885,8 @@ in {
pywemo = callPackage ../development/python-modules/pywemo { };
pywerview = callPackage ../development/python-modules/pywerview { };
pywick = callPackage ../development/python-modules/pywick { };
pywilight = callPackage ../development/python-modules/pywilight { };