mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
wad: migrate to new Python app style
This commit is contained in:
parent
5e4feb3c2d
commit
90185d9f22
2 changed files with 16 additions and 15 deletions
|
@ -1,31 +1,32 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, six
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "wad";
|
||||
version = "0.4.6";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname;
|
||||
inherit version;
|
||||
sha256 = "02jq77h6g9v7n4qqq7qri6wmhggy257983dwgmpjsf4qsagkgwy8";
|
||||
src = fetchFromGitHub {
|
||||
owner = "CERN-CERT";
|
||||
repo = "WAD";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-/mlmOzFkyKpmK/uk4813Wk0cf/+ynX3Qxafnd1mGR5k=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
checkInputs = with python3.pkgs; [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "wad" ];
|
||||
pythonImportsCheck = [
|
||||
"wad"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool for detecting technologies used by web applications";
|
||||
|
|
|
@ -29147,7 +29147,7 @@ with pkgs;
|
|||
|
||||
vym = qt5.callPackage ../applications/misc/vym { };
|
||||
|
||||
wad = python3Packages.callPackage ../tools/security/wad { };
|
||||
wad = callPackage ../tools/security/wad { };
|
||||
|
||||
wafw00f = python3Packages.callPackage ../tools/security/wafw00f { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue