creds: init at 0.5

This commit is contained in:
Fabian Affolter 2023-06-16 19:20:03 +02:00
parent 979b4232b3
commit 9ccbe2828a
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "creds";
version = "0.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "ihebski";
repo = "DefaultCreds-cheat-sheet";
rev = "refs/tags/creds-${version}";
hash = "sha256-s9ja2geFTnul7vUlGI4Am+IG3C0igICf0whnyd3SHdQ=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "tinydb==4.3" "tinydb" \
--replace "pathlib" ""
substituteInPlace creds \
--replace "pathlib.Path(__file__).parent" "pathlib.Path.home()"
'';
propagatedBuildInputs = 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";
homepage = "https://github.com/ihebski/DefaultCreds-cheat-sheet";
changelog = "https://github.com/ihebski/DefaultCreds-cheat-sheet/releases/tag/creds-${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -712,6 +712,8 @@ with pkgs;
credential-detector = callPackage ../tools/security/credential-detector { };
creds = callPackage ../tools/security/creds { };
credslayer = callPackage ../tools/security/credslayer { };
device-tree_rpi = callPackage ../os-specific/linux/device-tree/raspberrypi.nix { };