571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
48 lines
979 B
Nix
48 lines
979 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "holehe";
|
|
version = "unstable-2023-05-18";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "megadose";
|
|
repo = "holehe";
|
|
rev = "bec2f582c286a4e32de4dfc1f241297f60bd8713";
|
|
hash = "sha256-dLfuQew6cqb32r9AMubuo51A7TeaIafEdZs0OrQF7Gg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# https://github.com/megadose/holehe/pull/178
|
|
substituteInPlace setup.py \
|
|
--replace "bs4" "beautifulsoup4"
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
beautifulsoup4
|
|
colorama
|
|
httpx
|
|
termcolor
|
|
tqdm
|
|
trio
|
|
];
|
|
|
|
# Project has no test
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"holehe"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "CLI to check if the mail is used on different sites";
|
|
mainProgram = "holehe";
|
|
homepage = "https://github.com/megadose/holehe";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|