From 332422d41089a99e2833871650616ea412c219e7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 9 Jun 2022 10:05:46 +0200 Subject: [PATCH] python310Packages.pywerview: init at 0.4.0 --- .../python-modules/pywerview/default.nix | 55 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/development/python-modules/pywerview/default.nix diff --git a/pkgs/development/python-modules/pywerview/default.nix b/pkgs/development/python-modules/pywerview/default.nix new file mode 100644 index 000000000000..9dbb19738bee --- /dev/null +++ b/pkgs/development/python-modules/pywerview/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7cb4910213d1..26fb14885d6a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };