1{ lib, python3Packages, fetchFromGitHub, fetchpatch }:
2
3python3Packages.buildPythonApplication rec {
4 pname = "plecost";
5 version = "1.1.4";
6
7 src = fetchFromGitHub {
8 owner = "iniqua";
9 repo = pname;
10 # Release is untagged
11 rev = "aa40e504bee95cf731f0cc9f228bcf5fdfbe6194";
12 sha256 = "K8ESI2EOqH9zBDfSKgVcTKjCMdRhBiwltIbXDt1vF+M=";
13 };
14
15 patches = [
16 # Fix compatibility with aiohttp 3.x
17 # Merged - pending next release
18 (fetchpatch {
19 url = "https://github.com/iniqua/plecost/pull/34/commits/c09e7fab934f136f8fbc5f219592cf5fec151cf9.patch";
20 sha256 = "sha256-G7Poo3+d+PQTrg8PCrmsG6nMHt8CXgiuAu+ZNvK8oiw=";
21 })
22 ];
23
24 propagatedBuildInputs = with python3Packages; [
25 aiohttp
26 async-timeout
27 termcolor
28 lxml
29 ];
30
31 # Project has no tests
32 doCheck = false;
33
34 meta = with lib; {
35 description = "Vulnerability fingerprinting and vulnerability finder for Wordpress blog engine";
36 homepage = "https://github.com/iniqua/plecost";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ emilytrau ];
39 };
40}