Merge pull request #120037 from fabaff/dnstwist
commita738f23b20c632b212fedcc885147aa84be97f97
authorSandro <sandro.jaeckel@gmail.com>
dateThu 22 Apr 2021, 03:55 (6 years ago)
parentd4d8ab23121998
pkgs/development/python-modules/ppdeep/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+}:
5+
6+buildPythonPackage rec {
7+ pname = "ppdeep";
8+ version = "20200505";
9+
10+ src = fetchPypi {
11+ inherit pname version;
12+ sha256 = "1zx1h0ff0wjjkgd0dzjv31i6ag09jw2p9vcssc1iplp60awlpixc";
13+ };
14+
15+ # Project has no tests
16+ doCheck = false;
17+ pythonImportsCheck = [ "ppdeep" ];
18+
19+ meta = with lib; {
20+ description = "Python library for computing fuzzy hashes (ssdeep)";
21+ homepage = "https://github.com/elceef/ppdeep";
22+ license = with licenses; [ asl20 ];
23+ maintainers = with maintainers; [ fab ];
24+ };
25+}
pkgs/tools/networking/dnstwist/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, fetchFromGitHub
3+, python3
4+}:
5+
6+python3.pkgs.buildPythonApplication rec {
7+ pname = "dnstwist";
8+ version = "20201228";
9+ disabled = python3.pythonOlder "3.6";
10+
11+ src = fetchFromGitHub {
12+ owner = "elceef";
13+ repo = pname;
14+ rev = version;
15+ sha256 = "0bxshi1p0va2f449v6vsm8bav5caa3r3pyknj3zf4n5rvk6say70";
16+ };
17+
18+ propagatedBuildInputs = with python3.pkgs; [
19+ dnspython
20+ GeoIP
21+ ppdeep
22+ requests
23+ tld
24+ whois
25+ ];
26+
27+ # Project has no tests
28+ doCheck = false;
29+ pythonImportsCheck = [ "dnstwist" ];
30+
31+ meta = with lib; {
32+ description = "Domain name permutation engine for detecting homograph phishing attacks";
33+ homepage = "https://github.com/elceef/dnstwist";
34+ license = with licenses; [ gpl3Only ];
35+ maintainers = with maintainers; [ fab ];
36+ };
37+}
pkgs/top-level/all-packages.nix+2
@@ -30935,6 +30935,8 @@ in
3093530935 inherit (darwin) libresolv;
3093630936 };
3093730937
30938+ dnstwist = callPackage ../tools/networking/dnstwist {};
30939+
3093830940 dsniff = callPackage ../tools/networking/dsniff {};
3093930941
3094030942 wal-g = callPackage ../tools/backup/wal-g { };
pkgs/top-level/python-packages.nix+2
@@ -5255,6 +5255,8 @@ in {
52555255
52565256 pkuseg = callPackage ../development/python-modules/pkuseg { };
52575257
5258+ ppdeep = callPackage ../development/python-modules/ppdeep { };
5259+
52585260 pynndescent = callPackage ../development/python-modules/pynndescent { };
52595261
52605262 pynuki = callPackage ../development/python-modules/pynuki { };