From 9971cc7a0e633f060747e27d72b2f8570c1e9ea9 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 29 Apr 2025 22:29:50 +0200 Subject: [PATCH] ghmap: init at 1.0.2 --- pkgs/by-name/gh/ghmap/package.nix | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/gh/ghmap/package.nix diff --git a/pkgs/by-name/gh/ghmap/package.nix b/pkgs/by-name/gh/ghmap/package.nix new file mode 100644 index 000000000000..fb581633c697 --- /dev/null +++ b/pkgs/by-name/gh/ghmap/package.nix @@ -0,0 +1,42 @@ +{ + lib, + python3Packages, + fetchFromGitHub, +}: + +python3Packages.buildPythonApplication rec { + pname = "ghmap"; + version = "1.0.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "uhourri"; + repo = "ghmap"; + tag = "v${version}"; + hash = "sha256-ZA7jtcmvjZEIS3iYaTv9rFqeQSqsh8pCxcbpQDUPDfs="; + }; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = with python3Packages; [ + tqdm + ]; + + pythonImportsCheck = [ + "ghmap" + ]; + + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + ]; + + meta = { + description = "Python tool for mapping GitHub events to contributor activities"; + homepage = "https://github.com/uhourri/ghmap"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ drupol ]; + mainProgram = "ghmap"; + }; +}