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