1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 19:08:30 +00:00
nixpkgs/pkgs/tools/security/vulnix/default.nix
2018-05-03 11:00:48 +02:00

52 lines
1.1 KiB
Nix

{ stdenv, pythonPackages, fetchurl, callPackage, nix, ronn }:
pythonPackages.buildPythonApplication rec {
pname = "vulnix";
version = "1.6.3";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0ia71l0210dgcxf63bg07csx40nmpdghr4mszz91qrri7lsa5qqi";
};
buildInputs = [ ronn ];
checkInputs = with pythonPackages; [ freezegun pytest pytestcov pytest-flake8 ];
propagatedBuildInputs = [
nix
] ++ (with pythonPackages; [
click
colorama
lxml
pyyaml
requests
toml
zodb
]);
outputs = [ "out" "doc" ];
postBuild = ''
make -C doc
'';
checkPhase = "py.test src/vulnix";
postInstall = ''
install -D -t $out/share/man/man1 doc/vulnix.1
install -D -t $out/share/man/man5 doc/vulnix-whitelist.5
install -D -t $doc/share/doc/vulnix README.rst CHANGES.rst
gzip $doc/share/doc/vulnix/*.rst
'';
dontStrip = true;
meta = with stdenv.lib; {
description = "NixOS vulnerability scanner";
homepage = https://github.com/flyingcircusio/vulnix;
license = licenses.bsd2;
maintainers = with maintainers; [ ckauhaus plumps ];
};
}