ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pywerview / default.nix
blob9dbb19738beee1a91cbe330355ef28b7cc48afab
1 { lib
2 , beautifulsoup4
3 , buildPythonPackage
4 , fetchFromGitHub
5 , gssapi
6 , impacket
7 , ldap3
8 , lxml
9 , pyasn1
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "pywerview";
15   version = "0.4.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "the-useless-one";
22     repo = pname;
23     rev = "v${version}";
24     hash = "sha256-nrPhyBHW13dkXFC5YJfrkiztAxMw4KuEif0zCdjQEq0=";
25   };
27   propagatedBuildInputs = [
28     beautifulsoup4
29     gssapi
30     impacket
31     ldap3
32     lxml
33     pyasn1
34   ];
36   # Module has no tests
37   doCheck = false;
39   postPatch = ''
40     # https://github.com/the-useless-one/pywerview/pull/51
41     substituteInPlace setup.py \
42       --replace "bs4" "beautifulsoup4"
43   '';
45   pythonImportsCheck = [
46     "pywerview"
47   ];
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   };