biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / holehe / default.nix
blob872cde1f8f875c277ff25e2bb6ca5baafe8d3252
1 { lib
2 , python3
3 , fetchFromGitHub
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "holehe";
8   version = "unstable-2023-05-18";
9   format = "setuptools";
11   src = fetchFromGitHub {
12     owner = "megadose";
13     repo = "holehe";
14     rev = "bec2f582c286a4e32de4dfc1f241297f60bd8713";
15     hash = "sha256-dLfuQew6cqb32r9AMubuo51A7TeaIafEdZs0OrQF7Gg=";
16   };
18   postPatch = ''
19     # https://github.com/megadose/holehe/pull/178
20     substituteInPlace setup.py \
21       --replace "bs4" "beautifulsoup4"
22   '';
24   propagatedBuildInputs = with python3.pkgs; [
25     beautifulsoup4
26     colorama
27     httpx
28     termcolor
29     tqdm
30     trio
31   ];
33   # Project has no test
34   doCheck = false;
36   pythonImportsCheck = [
37     "holehe"
38   ];
40   meta = with lib; {
41     description = "CLI to check if the mail is used on different sites";
42     mainProgram = "holehe";
43     homepage = "https://github.com/megadose/holehe";
44     license = licenses.gpl3Only;
45     maintainers = with maintainers; [ fab ];
46   };