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

39 lines
843 B
Nix
Raw Normal View History

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