Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "creds";
|
|
version = "0.5.3";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ihebski";
|
|
repo = "DefaultCreds-cheat-sheet";
|
|
tag = "creds-v${version}";
|
|
hash = "sha256-nATmzEUwvJwzPZs+bO+/6ZHIrGgvjApaEwVpMyCXmik=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "tinydb" ];
|
|
pythonRemoveDeps = [ "pathlib" ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace creds \
|
|
--replace-fail "pathlib.Path(__file__).parent" "pathlib.Path.home()"
|
|
'';
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
fire
|
|
prettytable
|
|
requests
|
|
tinydb
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Tool to search a collection of default credentials";
|
|
mainProgram = "creds";
|
|
homepage = "https://github.com/ihebski/DefaultCreds-cheat-sheet";
|
|
changelog = "https://github.com/ihebski/DefaultCreds-cheat-sheet/releases/tag/${src.tag}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|