vulnix: 1.6.3 -> 1.7

The updated version brings selective whitelisting, i.e. when some CVEs
of a package are whitelisted and others are not, only the new CVEs are
reported.

Also correct license to match upstream BSD-3-Clause and clean up source.
This commit is contained in:
Christian Kauhaus 2018-07-20 15:24:40 +02:00
parent 871f3396a5
commit 69454943b7

View File

@ -2,16 +2,21 @@
pythonPackages.buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
pname = "vulnix"; pname = "vulnix";
version = "1.6.3"; version = "1.7";
src = pythonPackages.fetchPypi { src = pythonPackages.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0ia71l0210dgcxf63bg07csx40nmpdghr4mszz91qrri7lsa5qqi"; sha256 = "16228w0vakb515cnrk4akadh0m21abiv8rv574jarcsf7359xslj";
}; };
buildInputs = [ ronn ]; buildInputs = [ ronn ];
checkInputs = with pythonPackages; [ freezegun pytest pytestcov pytest-flake8 ]; checkInputs = with pythonPackages; [
freezegun
pytest
pytestcov
pytest-flake8
];
propagatedBuildInputs = [ propagatedBuildInputs = [
nix nix
@ -27,9 +32,7 @@ pythonPackages.buildPythonApplication rec {
outputs = [ "out" "doc" ]; outputs = [ "out" "doc" ];
postBuild = '' postBuild = "make -C doc";
make -C doc
'';
checkPhase = "py.test src/vulnix"; checkPhase = "py.test src/vulnix";
@ -45,7 +48,7 @@ pythonPackages.buildPythonApplication rec {
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "NixOS vulnerability scanner"; description = "NixOS vulnerability scanner";
homepage = https://github.com/flyingcircusio/vulnix; homepage = https://github.com/flyingcircusio/vulnix;
license = licenses.bsd2; license = licenses.bsd3;
maintainers = with maintainers; [ ckauhaus plumps ]; maintainers = with maintainers; [ ckauhaus plumps ];
}; };
} }