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"; + }; +}