diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-04-26 18:00:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-26 18:00:58 +0000 |
commit | 037c0663b9d1eaf1fbeffede5b8e9acd99569b9c (patch) | |
tree | 7a67bcdaf4170deb7b51c5b148bfb65f4440d732 /pkgs/by-name/al | |
parent | 7ac1647abc383ad3d6c59cfb57519294d5809143 (diff) | |
parent | 1d67e14da5e03eba8c84ba963d0dd7fa50024b54 (diff) |
Merge master into staging-next
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..839173efa64d6 --- /dev/null +++ b/pkgs/by-name/al/altdns/package.nix @@ -0,0 +1,53 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication { + pname = "altdns"; + version = "1.0.2-unstable-2021-09-09"; + pyproject = true; + + src = fetchFromGitHub { + owner = "infosec-au"; + repo = "altdns"; + rev = "8c1de0fa8365153832bb58d74475caa15d2d077a"; + hash = "sha256-ElY6AZ7IBnOh7sRWNSQNmq7AYGlnjvYRn8/U+29BwWA="; + }; + + prePatch = '' + substituteInPlace requirements.txt \ + --replace-fail "argparse" "" + substituteInPlace setup.py \ + --replace-fail "argparse" "" + ''; + + build-system = with python3.pkgs; [ + setuptools + ]; + + dependencies = with python3.pkgs; [ + dnspython + termcolor + tldextract + ]; + + 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"; + }; +} |