2023-02-04 14:18:24 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "wtfis";
|
2023-02-27 04:44:06 +01:00
|
|
|
version = "0.6.1";
|
2023-02-04 14:18:24 +01:00
|
|
|
in python3.pkgs.buildPythonApplication {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pirxthepilot";
|
|
|
|
repo = "wtfis";
|
2023-02-27 04:44:06 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-bHgv5+HoM1hFhpkqml+HxqiMDvKbMqsTH+zYtDrV7Ko=";
|
2023-02-04 14:18:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# TODO: get rid of that newbie patch
|
|
|
|
./000-pyproject-remove-versions.diff
|
|
|
|
];
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python3.pkgs.hatchling
|
|
|
|
python3.pkgs.pydantic
|
|
|
|
python3.pkgs.rich
|
|
|
|
python3.pkgs.shodan
|
|
|
|
python3.pkgs.python-dotenv
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|