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

54 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, python3Packages, nix, ronn }:
2017-03-13 14:43:25 -07:00
python3Packages.buildPythonApplication rec {
2017-03-13 14:43:25 -07:00
pname = "vulnix";
version = "1.9.4";
2017-03-13 14:43:25 -07:00
src = python3Packages.fetchPypi {
2017-03-15 02:29:27 -07:00
inherit pname version;
sha256 = "06dpdsnz1ih0syas3x25s557qpw0f4kmypvxwaffm734djg8klmi";
2017-03-13 14:43:25 -07:00
};
2019-03-09 09:37:42 -08:00
outputs = [ "out" "doc" "man" ];
2019-02-14 11:38:01 -08:00
nativeBuildInputs = [ ronn ];
2018-05-02 06:09:39 -07:00
checkInputs = with python3Packages; [
freezegun
pytest
pytestcov
pytest-flake8
];
2017-03-15 02:29:27 -07:00
2017-03-13 14:43:25 -07:00
propagatedBuildInputs = [
2017-03-15 02:29:27 -07:00
nix
] ++ (with python3Packages; [
2017-03-13 14:43:25 -07:00
click
colorama
2017-03-15 02:29:27 -07:00
pyyaml
requests
setuptools
toml
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
postBuild = "make -C doc";
checkPhase = "py.test src/vulnix";
postInstall = ''
install -D -t $doc/share/doc/vulnix README.rst CHANGES.rst
gzip $doc/share/doc/vulnix/*.rst
2019-03-09 09:37:42 -08:00
install -D -t $man/share/man/man1 doc/vulnix.1
install -D -t $man/share/man/man5 doc/vulnix-whitelist.5
'';
dontStrip = true;
2017-03-13 14:43:25 -07:00
meta = with stdenv.lib; {
description = "NixOS vulnerability scanner";
homepage = "https://github.com/flyingcircusio/vulnix";
license = licenses.bsd3;
maintainers = with maintainers; [ ckauhaus ];
2017-03-13 14:43:25 -07:00
};
2017-03-15 02:29:27 -07:00
}