mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
cve-prioritizer: 1.8.0 -> 1.9.0
Diff: https://github.com/TURROKS/CVE_Prioritizer/compare/refs/tags/v1.8.0...refs/tags/v1.9.0 Changelog: https://github.com/TURROKS/CVE_Prioritizer/releases/tag/v1.9.0
This commit is contained in:
parent
b6efa33a3c
commit
1107cd6ce2
1 changed files with 2 additions and 18 deletions
|
@ -1,37 +1,21 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
python3,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "cve-prioritizer";
|
||||
version = "1.8.0";
|
||||
version = "1.9.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TURROKS";
|
||||
repo = "CVE_Prioritizer";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-ade/gcRrdvVsp5F61ZndsNL3s3gq8TDk/dZvPc55S/8=";
|
||||
hash = "sha256-FJN/AM4NFctMszzIBdvww7OtC7fimb++tbtRZ77ll5c=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Add script, https://github.com/TURROKS/CVE_Prioritizer/pull/33
|
||||
(fetchpatch {
|
||||
name = "add-script.patch";
|
||||
url = "https://github.com/TURROKS/CVE_Prioritizer/commit/c29f2332cde7d79e0c9f34c0a1811611a8fb73c9.patch";
|
||||
hash = "sha256-/hnS+YKO4zNGVGTG+KsugJH7Bt2OE8Q2F+7ZX+uhFlU=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/TURROKS/CVE_Prioritizer/pull/32
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "CVE Prioritizer" "cve-prioritizer"
|
||||
'';
|
||||
|
||||
build-system = with python3.pkgs; [ setuptools ];
|
||||
|
||||
dependencies = with python3.pkgs; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue