2017-08-09 06:19:39 +01:00
|
|
|
{ stdenv, pythonPackages, fetchurl, callPackage, nix }:
|
2017-03-13 21:43:25 +00:00
|
|
|
|
2017-08-09 06:19:39 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2017-03-13 21:43:25 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "vulnix";
|
|
|
|
version = "1.2.2";
|
|
|
|
|
2017-03-15 09:29:27 +00:00
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
2017-03-13 21:43:25 +00:00
|
|
|
sha256 = "1ia9plziwach0bxnlcd33q30kcsf8sv0nf2jc78gsmrqnxjabr12";
|
|
|
|
};
|
|
|
|
|
2017-03-15 09:29:27 +00:00
|
|
|
buildInputs = with pythonPackages; [ flake8 pytest pytestcov ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's/==\([^=]\+\)/>=\1/g' setup.py
|
|
|
|
'';
|
2017-03-13 21:43:25 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2017-03-15 09:29:27 +00:00
|
|
|
nix
|
|
|
|
] ++ (with pythonPackages; [
|
2017-03-13 21:43:25 +00:00
|
|
|
click
|
|
|
|
colorama
|
2017-03-15 09:29:27 +00:00
|
|
|
lxml
|
|
|
|
pyyaml
|
2017-05-07 11:55:45 +01:00
|
|
|
requests
|
2017-08-09 06:19:39 +01:00
|
|
|
zodb
|
2017-03-15 09:29:27 +00:00
|
|
|
]);
|
2017-03-13 21:43:25 +00:00
|
|
|
|
2017-03-15 09:29:27 +00:00
|
|
|
checkPhase = "py.test";
|
2017-03-13 21:43:25 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "NixOS vulnerability scanner";
|
|
|
|
homepage = https://github.com/flyingcircusio/vulnix;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ plumps ];
|
|
|
|
};
|
2017-03-15 09:29:27 +00:00
|
|
|
}
|