nixpkgs/pkgs/tools/security/vulnix/default.nix

39 lines
843 B
Nix
Raw Normal View History

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.4.0";
2017-03-13 21:43:25 +00:00
2017-03-15 09:29:27 +00:00
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "19kfqxlrigrgwn74x06m70ar2fhyhic5kfmdanjwjcbaxblha3l8";
2017-03-13 21:43:25 +00:00
};
2017-03-15 09:29:27 +00:00
buildInputs = with pythonPackages; [ flake8 pytest pytestcov ];
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
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
postPatch = ''
sed -i -e 's/==\([^=]\+\)/>=\1/g' setup.py
'';
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; [ ckauhaus plumps ];
2017-03-13 21:43:25 +00:00
};
2017-03-15 09:29:27 +00:00
}