From 26b798051619d70c6cdb7f80a8444b75df8224a4 Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 4 Feb 2022 20:30:20 +0200 Subject: [PATCH] gh2md: init at 2.0.0 useful to backup github issues and PRs --- pkgs/tools/backup/gh2md/default.nix | 27 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/backup/gh2md/default.nix diff --git a/pkgs/tools/backup/gh2md/default.nix b/pkgs/tools/backup/gh2md/default.nix new file mode 100644 index 000000000000..5306080aa6be --- /dev/null +++ b/pkgs/tools/backup/gh2md/default.nix @@ -0,0 +1,27 @@ +{ lib +, python3Packages +}: + +python3Packages.buildPythonApplication rec { + pname = "gh2md"; + version = "2.0.0"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "7a277939d4781f4ca741eccb74fc70f0aa85811185da52219878129cba7f1d77"; + }; + + propagatedBuildInputs = with python3Packages; [ six requests python-dateutil ]; + + # uses network + doCheck = false; + + pythonImportsCheck = [ "gh2md" ]; + + meta = with lib; { + description = "Export Github repository issues to markdown files"; + homepage = "https://github.com/mattduck/gh2md"; + license = licenses.mit; + maintainers = with maintainers; [ artturin ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bb561e59a965..f34c38a6766f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3177,6 +3177,8 @@ with pkgs; ghidra-bin = callPackage ../tools/security/ghidra { }; + gh2md = callPackage ../tools/backup/gh2md { }; + gif-for-cli = callPackage ../tools/misc/gif-for-cli { }; giph = callPackage ../applications/video/giph { };