Unverified Commit 72865d21 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

gitfetch: init at 1.2.1 (#454978)

parents 58696117 6c8c69dd
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  lib,
  python3Packages,
  fetchFromGitHub,
  gh,
  nix-update-script,
}:

python3Packages.buildPythonApplication rec {
  pname = "gitfetch";
  version = "1.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Matars";
    repo = "gitfetch";
    tag = "v${version}";
    hash = "sha256-2cOfVv/snhluazyjwDuHEbbMq3cK+bsKYnnRmby0JDo=";
  };

  build-system = with python3Packages; [ setuptools ];

  dependencies = with python3Packages; [
    requests
    readchar
  ];

  makeWrapperArgs = [
    "--prefix PATH : ${
      lib.makeBinPath [
        gh
      ]
    }"
  ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Neofetch-style CLI tool for git provider statistics";
    homepage = "https://github.com/Matars/gitfetch";
    mainProgram = "gitfetch";
    license = lib.licenses.gpl2Only;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ lonerOrz ];
  };
}