Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.dirsearch: init at 0.4.3 #191097

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions pkgs/development/python-modules/dirsearch/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{ lib
, buildPythonPackage
, python
, fetchFromGitHub
, pysocks
, jinja2
, certifi
, urllib3
, cryptography
, defusedxml
, pyopenssl
, chardet
, charset-normalizer
, requests
, requests_ntlm
, colorama
, beautifulsoup4
, pyparsing
, setuptools
}:

buildPythonPackage rec {
pname = "dirsearch";
version = "0.4.3";

src = fetchFromGitHub {
owner = "maurosoria";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-eXB103qUB3m7V/9hlq2xv3Y3bIz89/pGJsbPZQ+AZXs=";
};

doCheck = false; # disabled because of TypeError: DynamicContentParser.__init__() missing 4 required positional arguments: 'requester', 'path', 'firstPage', and 'secondPage', also appears to require network connection

buildInputs = [ python ];

propagatedBuildInputs = [ pysocks jinja2 certifi urllib3 cryptography defusedxml pyopenssl chardet charset-normalizer requests requests_ntlm colorama beautifulsoup4 pyparsing setuptools ];

pythonImportsCheck = [
"socks" "jinja2" "certifi" "urllib3" "cryptography" "cffi" "defusedxml" "markupsafe"
"OpenSSL" "idna" "chardet" "charset_normalizer" "requests" "requests_ntlm" "colorama" "ntlm_auth" "pyparsing" "bs4" "setuptools"
];

# installPhase was overridden because of the "[....]/nix-support/setup-hook: line 13: pushd: dist: No such file or directory" error
installPhase = ''
${python.pythonForBuild.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache .
'';

meta = with lib; {
description = "An advanced command-line tool designed to brute force directories and files in webservers, AKA web path scanner.";
homepage = "https://github.com/maurosoria/dirsearch";
changelog = "https://github.com/maurosoria/dirsearch/releases/tag/${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [];
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,8 @@ in {

directv = callPackage ../development/python-modules/directv { };

dirsearch = callPackage ../development/python-modules/dirsearch { };

dirty-equals = callPackage ../development/python-modules/dirty-equals { };

discid = callPackage ../development/python-modules/discid { };
Expand Down