nixpkgs/pkgs/tools/package-management/zkg/default.nix

43 lines
856 B
Nix

{ lib
, python3
, fetchFromGitHub
, pkgs
}:
python3.pkgs.buildPythonApplication rec {
pname = "zkg";
version = "2.14.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "zeek";
repo = "package-manager";
rev = "refs/tags/v${version}";
hash = "sha256-HdOzxSU3XWz1ZH96woDWrHzKbpJW3/IKkpc2tGfyi9o=";
};
propagatedBuildInputs = with python3.pkgs; [
btest
gitpython
semantic-version
sphinx
sphinx-rtd-theme
pkgs.bash
];
# No tests available
doCheck = false;
pythonImportsCheck = [
"zeekpkg"
];
meta = with lib; {
description = "Package manager for Zeek";
homepage = "https://github.com/zeek/package-manager";
changelog = "https://github.com/zeek/package-manager/blob/${version}/CHANGES";
license = licenses.ncsa;
maintainers = with maintainers; [ fab ];
};
}