2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, pythonPackages }:
|
2016-07-19 06:47:43 +00:00
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
2018-07-12 19:53:48 +00:00
|
|
|
version = "1.4";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "wikicurses";
|
2016-07-19 06:47:43 +00:00
|
|
|
|
2018-07-12 19:53:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ids1024";
|
|
|
|
repo = "wikicurses";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0f14s4qx3q5pr5vn460c34b5mbz2xs62d8ljs3kic8gmdn8x2knm";
|
2016-07-19 06:47:43 +00:00
|
|
|
};
|
|
|
|
|
2020-03-13 19:52:20 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2016-07-19 06:47:43 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ urwid beautifulsoup4 lxml ];
|
|
|
|
|
2020-03-13 19:52:20 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $man/share/man/man{1,5}
|
|
|
|
cp wikicurses.1 $man/share/man/man1/
|
|
|
|
cp wikicurses.conf.5 $man/share/man/man5/
|
|
|
|
'';
|
|
|
|
|
2020-03-13 19:44:00 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2016-07-19 06:47:43 +00:00
|
|
|
meta = {
|
|
|
|
description = "A simple curses interface for MediaWiki sites such as Wikipedia";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ids1024/wikicurses/";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ pSub ];
|
2016-07-19 06:47:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|