depot/third_party/nixpkgs/pkgs/by-name/gi/gitxray/package.nix

35 lines
941 B
Nix
Raw Normal View History

{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "gitxray";
version = "1.0.15-unstable-2024-09-20";
pyproject = true;
src = fetchFromGitHub {
owner = "kulkansecurity";
repo = "gitxray";
# https://github.com/kulkansecurity/gitxray/issues/1
rev = "7e02f8c789f1c8bf3f4df6c1c301d1a666cedd1c";
hash = "sha256-ucXHfclvaAbSi2HtrhkR2iW0r7jWq9yHqROwRAowOhA=";
};
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [ requests ];
pythonImportsCheck = [ "gitxray" ];
meta = {
description = "Tool which leverages Public GitHub REST APIs for various tasks";
homepage = "https://github.com/kulkansecurity/gitxray";
changelog = "https://github.com/kulkansecurity/gitxray/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "gitxray";
};
}