cheat: 2.5.1 -> 3.0.3 (#72299)

cheat: 2.5.1 -> 3.0.3
This commit is contained in:
Jörg Thalheim 2019-10-30 18:49:44 +00:00 committed by GitHub
commit 970a22ce15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,36 +1,24 @@
{ stdenv, python3, fetchFromGitHub }: { stdenv, fetchFromGitHub, buildGoModule }:
with python3.pkgs; buildGoModule rec {
buildPythonApplication rec {
pname = "cheat"; pname = "cheat";
version = "2.5.1"; version = "3.0.3";
propagatedBuildInputs = [ docopt pygments termcolor ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "chrisallenlane"; owner = "chrisallenlane";
repo = "cheat"; repo = "cheat";
rev = version; rev = version;
sha256 = "1i543hvg1yizamfd83bawflfcb500hvc72i59ikck8j1hjk50hsl"; sha256 = "19w1admdcgld9vlc4fsyc5d9bi6rmwhr2x2ji43za2vjlk34hnnx";
}; };
# no tests available
doCheck = false;
postInstall = '' subPackages = [ "cmd/cheat" ];
install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz
mv $out/${python3.sitePackages}/etc $out/
mv $out/${python3.sitePackages}/usr/share/* $out/share/
rm -r $out/${python3.sitePackages}/usr
'';
makeWrapperArgs = [ modSha256 = "189cqnfl403f4lk7g9v68mwk93ciglqli639dk4x9091lvn5gq5q";
"--suffix" "CHEAT_PATH" ":" "$out/share/cheat"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "cheat allows you to create and view interactive cheatsheets on the command-line"; description = "Create and view interactive cheatsheets on the command-line";
maintainers = with maintainers; [ mic92 ]; maintainers = with maintainers; [ mic92 ];
license = with licenses; [ gpl3 mit ]; license = with licenses; [ gpl3 mit ];
homepage = https://github.com/chrisallenlane/cheat; homepage = "https://github.com/chrisallenlane/cheat";
}; };
} }