forked from mirrors/nixpkgs
Merge pull request #171673 from fabaff/swaggerhole
swaggerhole: init at 1.1
This commit is contained in:
commit
f0d17e25e8
|
@ -1,20 +1,33 @@
|
|||
{ lib
|
||||
, astroid
|
||||
, beautifulsoup4
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
, jproperties
|
||||
, luhn
|
||||
, lxml
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, python-Levenshtein
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
buildPythonPackage rec {
|
||||
pname = "whispers";
|
||||
version = "1.5.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Skyscanner";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-jruUGyoZCyMu015QKtlvfx5WRMfxo/eYUue9wUIWb6o=";
|
||||
hash = "sha256-jruUGyoZCyMu015QKtlvfx5WRMfxo/eYUue9wUIWb6o=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
propagatedBuildInputs = [
|
||||
astroid
|
||||
beautifulsoup4
|
||||
jproperties
|
||||
|
@ -24,7 +37,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||
pyyaml
|
||||
];
|
||||
|
||||
checkInputs = with python3.pkgs; [
|
||||
checkInputs = [
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
37
pkgs/tools/security/swaggerhole/default.nix
Normal file
37
pkgs/tools/security/swaggerhole/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "swaggerhole";
|
||||
version = "1.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Liodeus";
|
||||
repo = pname;
|
||||
# Source is not tagged at the moment, https://github.com/Liodeus/swaggerHole/issues/2
|
||||
rev = "14846406fbd0f145d71ad51c3b87f383e4afbc3b";
|
||||
hash = "sha256-3HmIpn1A86PXZRL+SqMdr84O16hW1mCUWHKnOVolmx8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
requests
|
||||
whispers
|
||||
];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"swaggerhole"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to searching for secret on swaggerhub";
|
||||
homepage = "https://github.com/Liodeus/swaggerHole";
|
||||
license = with licenses; [ gpl3Plus ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -10613,6 +10613,8 @@ with pkgs;
|
|||
|
||||
swagger-codegen3 = callPackage ../tools/networking/swagger-codegen3 { };
|
||||
|
||||
swaggerhole = callPackage ../tools/security/swaggerhole { };
|
||||
|
||||
swapview = callPackage ../os-specific/linux/swapview { };
|
||||
|
||||
swtpm = callPackage ../tools/security/swtpm { };
|
||||
|
@ -30394,7 +30396,7 @@ with pkgs;
|
|||
|
||||
wafw00f = callPackage ../tools/security/wafw00f { };
|
||||
|
||||
whispers = callPackage ../tools/security/whispers { };
|
||||
whispers = with python3Packages; toPythonApplication whispers;
|
||||
|
||||
waon = callPackage ../applications/audio/waon { };
|
||||
|
||||
|
|
|
@ -10937,6 +10937,8 @@ in {
|
|||
|
||||
whisper = callPackage ../development/python-modules/whisper { };
|
||||
|
||||
whispers = callPackage ../development/python-modules/whispers { };
|
||||
|
||||
whitenoise = callPackage ../development/python-modules/whitenoise { };
|
||||
|
||||
whodap = callPackage ../development/python-modules/whodap { };
|
||||
|
|
Loading…
Reference in a new issue