nixpkgs/pkgs/by-name/wt/wtfis/package.nix
2024-04-21 09:56:34 +00:00

49 lines
979 B
Nix

{ lib
, python3
, fetchFromGitHub
}:
let
pname = "wtfis";
version = "0.9.0";
src = fetchFromGitHub {
owner = "pirxthepilot";
repo = "wtfis";
rev = "refs/tags/v${version}";
hash = "sha256-LeIb2MLxulDsgQepNr7I81u8gG4HQC6PsszKZKVjFkw=";
};
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";
mainProgram = "wtfis";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.AndersonTorres ];
};
}