nixpkgs/pkgs/tools/security/vulnix/default.nix
Christian Kauhaus 10c2dcef82 vulnix: 1.3.4 -> 1.4.0
The new vulnix release contains auto-detection of CVE patches.
2017-12-04 09:41:05 +01:00

39 lines
843 B
Nix

{ stdenv, pythonPackages, fetchurl, callPackage, nix }:
pythonPackages.buildPythonApplication rec {
name = "${pname}-${version}";
pname = "vulnix";
version = "1.4.0";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "19kfqxlrigrgwn74x06m70ar2fhyhic5kfmdanjwjcbaxblha3l8";
};
buildInputs = with pythonPackages; [ flake8 pytest pytestcov ];
propagatedBuildInputs = [
nix
] ++ (with pythonPackages; [
click
colorama
lxml
pyyaml
requests
zodb
]);
postPatch = ''
sed -i -e 's/==\([^=]\+\)/>=\1/g' setup.py
'';
checkPhase = "py.test";
meta = with stdenv.lib; {
description = "NixOS vulnerability scanner";
homepage = https://github.com/flyingcircusio/vulnix;
license = licenses.bsd2;
maintainers = with maintainers; [ ckauhaus plumps ];
};
}