summary refs log tree commit diff
path: root/pkgs/by-name/wt/wtfis/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/wt/wtfis/package.nix')
-rw-r--r--pkgs/by-name/wt/wtfis/package.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/by-name/wt/wtfis/package.nix b/pkgs/by-name/wt/wtfis/package.nix
new file mode 100644
index 00000000000..720d08a0609
--- /dev/null
+++ b/pkgs/by-name/wt/wtfis/package.nix
@@ -0,0 +1,47 @@
+{ lib
+, python3
+, fetchFromGitHub
+}:
+
+let
+  pname = "wtfis";
+  version = "0.7.1";
+  src = fetchFromGitHub {
+    owner = "pirxthepilot";
+    repo = "wtfis";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-X3e0icyhNPg8P6+N9k6a9WwBJ8bXRPdo3fj4cj+yY6w=";
+  };
+in python3.pkgs.buildPythonApplication {
+  inherit pname version src;
+
+  format = "pyproject";
+
+  nativeBuildInputs = [
+    python3.pkgs.pythonRelaxDepsHook
+  ];
+
+  propagatedBuildInputs = [
+    python3.pkgs.hatchling
+    python3.pkgs.pydantic
+    python3.pkgs.python-dotenv
+    python3.pkgs.rich
+    python3.pkgs.shodan
+  ];
+
+  pythonRelaxDeps = [
+    "pydantic"
+    "python-dotenv"
+    "requests"
+    "rich"
+    "shodan"
+    "types-requests"
+  ];
+
+  meta = {
+    homepage = "https://github.com/pirxthepilot/wtfis";
+    description = "Passive hostname, domain and IP lookup tool for non-robots";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.AndersonTorres ];
+  };
+}