summary refs log tree commit diff
diff options
context:
space:
mode:
authorFritz Otlinghaus <fritz.otlinghaus@stuvus.uni-stuttgart.de>2018-12-15 18:35:35 +0800
committerFritz Otlinghaus <fritz@otlinghaus.it>2018-12-29 18:57:18 +0800
commitcf97a0372f50b5bc2375e0d86c6e74689b0fa867 (patch)
tree76e9cd24b33d4639211d1501c403494b2505b92e
parentbf60f8d566a85aef39137357cddc09c2473adfad (diff)
downloadnixpkgs-cf97a0372f50b5bc2375e0d86c6e74689b0fa867.tar
nixpkgs-cf97a0372f50b5bc2375e0d86c6e74689b0fa867.tar.gz
nixpkgs-cf97a0372f50b5bc2375e0d86c6e74689b0fa867.tar.bz2
nixpkgs-cf97a0372f50b5bc2375e0d86c6e74689b0fa867.tar.lz
nixpkgs-cf97a0372f50b5bc2375e0d86c6e74689b0fa867.tar.xz
nixpkgs-cf97a0372f50b5bc2375e0d86c6e74689b0fa867.tar.zst
nixpkgs-cf97a0372f50b5bc2375e0d86c6e74689b0fa867.zip
gif-for-cli: init at unstable-2018-08-14
-rw-r--r--pkgs/development/python-modules/x256/default.nix6
-rw-r--r--pkgs/tools/misc/gif-for-cli/default.nix26
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 32 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/x256/default.nix b/pkgs/development/python-modules/x256/default.nix
index d728ad927a6..55a3ad7d0cc 100644
--- a/pkgs/development/python-modules/x256/default.nix
+++ b/pkgs/development/python-modules/x256/default.nix
@@ -10,11 +10,13 @@ buildPythonPackage rec {
     sha256 = "00g02b9a6jsl377xb5fmxvkjff3lalw21n430a4zalqyv76dnmgq";
   };
 
+  doCheck = false;
+
   meta = with stdenv.lib; {
-    description = "Return the nearest xterm 256 color code for rgb inputs.";
+    description = "Find the nearest xterm 256 color index for an RGB";
     homepage = https://github.com/magarcia/python-x256;
     license = licenses.mit;
-    maintainers = with maintainers; [ scriptkiddi ];
+    maintainers = with maintainers; [ Scriptkiddi ];
   };
 }
 
diff --git a/pkgs/tools/misc/gif-for-cli/default.nix b/pkgs/tools/misc/gif-for-cli/default.nix
new file mode 100644
index 00000000000..b8b86e07abb
--- /dev/null
+++ b/pkgs/tools/misc/gif-for-cli/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchFromGitHub, python3Packages, ffmpeg, zlib, libjpeg }:
+
+python3Packages.buildPythonApplication rec {
+  pname = "gif-for-cli";
+  version = "unstable-2018-08-14";
+
+  src = fetchFromGitHub {
+    owner = "google";
+    repo = "gif-for-cli";
+    rev = "9696f25fea2e38499b7c248a3151030c3c68bb00";
+    sha256 = "1rj8wjfsabn27k1ds7a5fdqgf2r28zpz4lvhbzssjfj1yf0mfh7s";
+  };
+
+  checkInputs = [ python3Packages.coverage ];
+  buildInputs = [ ffmpeg zlib libjpeg ];
+  propagatedBuildInputs = with python3Packages; [ pillow requests x256 ];
+
+  meta = with stdenv.lib; {
+    description = "Render gifs as ASCII art in your cli";
+    longDescription = "Takes in a GIF, short video, or a query to the Tenor GIF API and converts it to animated ASCII art.";
+    homepage = https://github.com/google/gif-for-cli;
+    license = licenses.asl20;
+    maintainers = with maintainers; [ Scriptkiddi ];
+  };
+
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 3e392af3f65..cc4a66b866b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1434,6 +1434,8 @@ in
 
   gh-ost = callPackage ../tools/misc/gh-ost { };
 
+  gif-for-cli = callPackage ../tools/misc/gif-for-cli { };
+
   gist = callPackage ../tools/text/gist { };
 
   gixy = callPackage ../tools/admin/gixy { };