mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ 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 compatibility 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";
|
|
mainProgram = "plecost";
|
|
homepage = "https://github.com/iniqua/plecost";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
};
|
|
}
|