summary refs log tree commit diff
path: root/pkgs/applications/misc/wikicurses/default.nix
blob: 9b1e9f091e25300a6e3d53f661a7c307c1c4dfd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchFromGitHub, pythonPackages }:

pythonPackages.buildPythonApplication rec {
  version = "1.4";
  pname = "wikicurses";

  src = fetchFromGitHub {
    owner = "ids1024";
    repo = "wikicurses";
    rev = "v${version}";
    sha256 = "0f14s4qx3q5pr5vn460c34b5mbz2xs62d8ljs3kic8gmdn8x2knm";
  };

  outputs = [ "out" "man" ];

  propagatedBuildInputs = with pythonPackages; [ urwid beautifulsoup4 lxml ];

  postInstall = ''
    mkdir -p $man/share/man/man{1,5}
    cp wikicurses.1 $man/share/man/man1/
    cp wikicurses.conf.5 $man/share/man/man5/
  '';

  doCheck = false;

  meta = {
    description = "A simple curses interface for MediaWiki sites such as Wikipedia";
    homepage = https://github.com/ids1024/wikicurses/;
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.unix;
    maintainers = with stdenv.lib.maintainers; [ pSub ];
  };

}