From 6d7745301842659de7a36e907a3974b9bd48df1c Mon Sep 17 00:00:00 2001 From: Emily Trau Date: Wed, 3 Aug 2022 18:55:57 +1000 Subject: [PATCH] plecost: init at 1.1.4 --- pkgs/tools/security/plecost/default.nix | 40 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/tools/security/plecost/default.nix diff --git a/pkgs/tools/security/plecost/default.nix b/pkgs/tools/security/plecost/default.nix new file mode 100644 index 000000000000..6e6e00aceb3c --- /dev/null +++ b/pkgs/tools/security/plecost/default.nix @@ -0,0 +1,40 @@ +{ lib, python3Packages, fetchFromGitHub, fetchpatch }: + +python3Packages.buildPythonApplication rec { + pname = "plecost"; + version = "1.1.4"; + + src = fetchFromGitHub { + owner = "iniqua"; + repo = pname; + # Release is untagged + rev = "aa40e504bee95cf731f0cc9f228bcf5fdfbe6194"; + sha256 = "K8ESI2EOqH9zBDfSKgVcTKjCMdRhBiwltIbXDt1vF+M="; + }; + + patches = [ + # Fix compatability with aiohttp 3.x + # Merged - pending next release + (fetchpatch { + url = "https://github.com/iniqua/plecost/pull/34/commits/c09e7fab934f136f8fbc5f219592cf5fec151cf9.patch"; + sha256 = "sha256-G7Poo3+d+PQTrg8PCrmsG6nMHt8CXgiuAu+ZNvK8oiw="; + }) + ]; + + propagatedBuildInputs = with python3Packages; [ + aiohttp + async-timeout + termcolor + lxml + ]; + + # Project has no tests + doCheck = false; + + meta = with lib; { + description = "Vulnerability fingerprinting and vulnerability finder for Wordpress blog engine"; + homepage = "https://github.com/iniqua/plecost"; + license = licenses.bsd3; + maintainers = with maintainers; [ emilytrau ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b942c9368456..c6ba5ff6a2e5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9747,6 +9747,8 @@ with pkgs; playbar2 = libsForQt5.callPackage ../applications/audio/playbar2 { }; + plecost = callPackage ../tools/security/plecost { }; + plujain-ramp = callPackage ../applications/audio/plujain-ramp { }; inherit (callPackage ../servers/plik { })