diff options
author | octodi <octodi@proton.me> | 2024-01-14 21:15:05 +0530 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-04-26 09:41:41 +0200 |
commit | 998dac69c66351d4c6877955c83040af8c4c39b9 (patch) | |
tree | 15f3adc620426ff4604c90eae6031894ce0337fd /pkgs/by-name/al | |
parent | 165090ed665fd56e1cabc4e2ac3b3b5524596a6a (diff) |
altdns: init at unstable-2021-09-09
Update package.nix Co-Authored-By: Fabian Affolter <mail@fabian-affolter.ch> Co-Authored-By: Arthur <150680976+arthsmn@users.noreply.github.com>
Diffstat (limited to 'pkgs/by-name/al')
-rw-r--r-- | pkgs/by-name/al/altdns/package.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/by-name/al/altdns/package.nix b/pkgs/by-name/al/altdns/package.nix new file mode 100644 index 0000000000000..7b019f35109b8 --- /dev/null +++ b/pkgs/by-name/al/altdns/package.nix @@ -0,0 +1,53 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication { + pname = "altdns"; + version = "unstable-2021-09-09"; + pyproject = true; + + src = fetchFromGitHub { + owner = "infosec-au"; + repo = "altdns"; + rev = "8c1de0fa8365153832bb58d74475caa15d2d077a"; + hash = "sha256-ElY6AZ7IBnOh7sRWNSQNmq7AYGlnjvYRn8/U+29BwWA="; + }; + + nativeBuildInputs = with python3.pkgs; [ + setuptools + ]; + + propagatedBuildInputs = with python3.pkgs; [ + dnspython + termcolor + tldextract + ]; + + prePatch = '' + substituteInPlace requirements.txt \ + --replace "argparse" "" + substituteInPlace setup.py \ + --replace "argparse" "" + ''; + + postInstall = '' + cp $src/words.txt $out/ + ''; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "altdns" + ]; + + meta = with lib; { + description = "Generates permutations, alterations and mutations of subdomains and then resolves them"; + homepage = "https://github.com/infosec-au/altdns"; + license = licenses.asl20; + maintainers = with maintainers; [ octodi ]; + mainProgram = "altdns"; + }; +} |