1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/tools/security/vulnix/default.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, pythonPackages, nix, ronn }:
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
pname = "vulnix";
version = "1.7.1";
2017-03-13 21:43:25 +00:00
2017-03-15 09:29:27 +00:00
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "15c32976sgb5clixngi6z1fk5h02v1kn1a89h8rkbkvyhfnjgg8m";
2017-03-13 21:43:25 +00:00
};
2019-02-14 19:38:01 +00:00
nativeBuildInputs = [ ronn ];
2018-05-02 14:09:39 +01:00
checkInputs = with pythonPackages; [
freezegun
pytest
pytestcov
pytest-flake8
];
2017-03-15 09:29:27 +00:00
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
toml
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
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;
2017-03-13 21:43:25 +00:00
meta = with stdenv.lib; {
description = "NixOS vulnerability scanner";
homepage = https://github.com/flyingcircusio/vulnix;
license = licenses.bsd3;
maintainers = with maintainers; [ ckauhaus plumps ];
2017-03-13 21:43:25 +00:00
};
2017-03-15 09:29:27 +00:00
}