1{ stdenv, python3Packages, fetchFromGitHub }:
2
3with python3Packages;
4buildPythonApplication rec {
5 name = "${pname}-${version}";
6 pname = "cheat";
7 version = "2.2.2";
8
9 propagatedBuildInputs = [ docopt pygments ];
10
11 src = fetchFromGitHub {
12 owner = "chrisallenlane";
13 repo = "cheat";
14 rev = version;
15 sha256 = "1da4m4n6nivjakpll6jj0aszrv24g2zax74034lzpv3pbh84fvas";
16 };
17 # no tests available
18 doCheck = false;
19
20 postInstall = ''
21 install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz
22 '';
23
24 meta = with stdenv.lib; {
25 description = "cheat allows you to create and view interactive cheatsheets on the command-line";
26 maintainers = with maintainers; [ mic92 ];
27 license = with licenses; [gpl3 mit];
28 homepage = https://github.com/chrisallenlane/cheat;
29 };
30}