From 3eaa93c722a67f0d1674b763467a655e78e456ad Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Wed, 17 Nov 2021 21:12:03 -0300 Subject: [PATCH] gistyc: init at 1.3 --- .../python-modules/gistyc/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/gistyc/default.nix diff --git a/pkgs/development/python-modules/gistyc/default.nix b/pkgs/development/python-modules/gistyc/default.nix new file mode 100644 index 000000000000..2f49552df236 --- /dev/null +++ b/pkgs/development/python-modules/gistyc/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, certifi +, click +, requests +}: + +buildPythonPackage rec { + pname = "gistyc"; + version = "1.3"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-WVK45U9e3qyZFi9wSRHNi9+1u4TetlZkYXAZN7LVqhE="; + }; + + propagatedBuildInputs = [ + certifi + click + requests + ]; + + meta = with lib; { + homepage = "https://github.com/ThomasAlbin/gistyc"; + description = "A Python based GitHub GIST management tool"; + longDescription = '' + gistyc is a Python-based library that enables developers to create, update + and delete their GitHub GISTs. CLI capabilities allow you to execute the + routines from the shell and can be integrated into your project's CI/CD + pipeline to automatically create or update your GISTs (e.g., via GitHub + actions). Files are separated in GIST sections depending on the separation + blocks. + ''; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ AndersonTorres ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99197cb90550..36a34d2486c9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1733,6 +1733,8 @@ with pkgs; gitless = callPackage ../applications/version-management/gitless { python = python3; }; + gistyc = with python3Packages; toPythonApplication gistyc; + gitlint = python3Packages.callPackage ../tools/misc/gitlint { }; gitter = callPackage ../applications/networking/instant-messengers/gitter { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b33949f62cca..a7657f02b4b7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3098,6 +3098,8 @@ in { gipc = callPackage ../development/python-modules/gipc { }; + gistyc = callPackage ../development/python-modules/gistyc { }; + git-annex-adapter = callPackage ../development/python-modules/git-annex-adapter { };