forked from mirrors/nixpkgs
Merge pull request #238122 from fabaff/defaultcreds-cheat-sheet
creds: init at 0.5
This commit is contained in:
commit
26319cf5d9
43
pkgs/tools/security/creds/default.nix
Normal file
43
pkgs/tools/security/creds/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue