nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6
7python3.pkgs.buildPythonApplication {
8 pname = "holehe";
9 version = "0-unstable-2023-05-18";
10 format = "pyproject";
11
12 src = fetchFromGitHub {
13 owner = "megadose";
14 repo = "holehe";
15 rev = "bec2f582c286a4e32de4dfc1f241297f60bd8713";
16 hash = "sha256-dLfuQew6cqb32r9AMubuo51A7TeaIafEdZs0OrQF7Gg=";
17 };
18
19 postPatch = ''
20 # https://github.com/megadose/holehe/pull/178
21 substituteInPlace setup.py \
22 --replace-fail "bs4" "beautifulsoup4"
23 '';
24
25 build-system = with python3.pkgs; [
26 setuptools
27 ];
28
29 dependencies = with python3.pkgs; [
30 beautifulsoup4
31 colorama
32 httpx
33 termcolor
34 tqdm
35 trio
36 ];
37
38 # Project has no test
39 doCheck = false;
40
41 pythonImportsCheck = [
42 "holehe"
43 ];
44
45 meta = with lib; {
46 description = "CLI to check if the mail is used on different sites";
47 mainProgram = "holehe";
48 homepage = "https://github.com/megadose/holehe";
49 license = licenses.gpl3Only;
50 maintainers = with maintainers; [ fab ];
51 };
52}