Merge pull request #52201 from Scriptkiddi/gif-for-cli

Gif for cli
This commit is contained in:
Silvan Mosberger 2018-12-31 03:09:08 +01:00 committed by GitHub
commit 78f80a6917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi
}:
buildPythonPackage rec {
pname = "x256";
version = "0.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "00g02b9a6jsl377xb5fmxvkjff3lalw21n430a4zalqyv76dnmgq";
};
doCheck = false;
meta = with stdenv.lib; {
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 ];
};
}

View file

@ -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 ];
};
}

View file

@ -1447,6 +1447,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 { };

View file

@ -5103,6 +5103,8 @@ in {
simpy = callPackage ../development/python-modules/simpy { };
x256 = callPackage ../development/python-modules/x256 { };
yattag = callPackage ../development/python-modules/yattag { };
z3 = (toPythonModule (pkgs.z3.override {