2017-08-09 07:19:39 +02:00
|
|
|
{ stdenv, pythonPackages, fetchurl, callPackage, nix }:
|
2017-03-13 22:43:25 +01:00
|
|
|
|
2017-08-09 07:19:39 +02:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2017-03-13 22:43:25 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "vulnix";
|
|
|
|
version = "1.2.2";
|
|
|
|
|
2017-03-15 10:29:27 +01:00
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
2017-03-13 22:43:25 +01:00
|
|
|
sha256 = "1ia9plziwach0bxnlcd33q30kcsf8sv0nf2jc78gsmrqnxjabr12";
|
|
|
|
};
|
|
|
|
|
2017-03-15 10:29:27 +01:00
|
|
|
buildInputs = with pythonPackages; [ flake8 pytest pytestcov ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's/==\([^=]\+\)/>=\1/g' setup.py
|
|
|
|
'';
|
2017-03-13 22:43:25 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2017-03-15 10:29:27 +01:00
|
|
|
nix
|
|
|
|
] ++ (with pythonPackages; [
|
2017-03-13 22:43:25 +01:00
|
|
|
click
|
|
|
|
colorama
|
2017-03-15 10:29:27 +01:00
|
|
|
lxml
|
|
|
|
pyyaml
|
2017-05-07 12:55:45 +02:00
|
|
|
requests
|
2017-08-09 07:19:39 +02:00
|
|
|
zodb
|
2017-03-15 10:29:27 +01:00
|
|
|
]);
|
2017-03-13 22:43:25 +01:00
|
|
|
|
2017-03-15 10:29:27 +01:00
|
|
|
checkPhase = "py.test";
|
2017-03-13 22:43:25 +01: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 10:29:27 +01:00
|
|
|
}
|