nixpkgs/pkgs/applications/misc/wikicurses/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

37 lines
894 B
Nix

{ lib, 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 = "Simple curses interface for MediaWiki sites such as Wikipedia";
mainProgram = "wikicurses";
homepage = "https://github.com/ids1024/wikicurses/";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ pSub ];
};
}