3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #238122 from fabaff/defaultcreds-cheat-sheet

creds: init at 0.5
This commit is contained in:
Fabian Affolter 2023-06-18 22:38:16 +02:00 committed by GitHub
commit 26319cf5d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -718,6 +718,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 { };