blob: 7dbb6a3c538871d7f911094f446d1e7a29b22645 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{ lib
, mkDerivationWith
, fetchFromGitHub
, python3Packages
, herbstluftwm
}:
mkDerivationWith python3Packages.buildPythonApplication rec {
pname = "webmacs";
version = "0.8";
disabled = python3Packages.isPy27;
src = fetchFromGitHub {
owner = "parkouss";
repo = "webmacs";
rev = version;
fetchSubmodules = true;
sha256 = "1hzb9341hybgrqcy1w20hshm6xaiby4wbjpjkigf4zq389407368";
};
propagatedBuildInputs = with python3Packages; [
pyqtwebengine
setuptools
dateparser
jinja2
pygments
];
checkInputs = [
python3Packages.pytest
#python3Packages.pytest-xvfb
#python3Packages.pytest-qt
python3Packages.pytestCheckHook
herbstluftwm
# The following are listed in test-requirements.txt but appear not
# to be needed at present:
# python3Packages.pytest-mock
# python3Packages.flake8
];
# See https://github.com/parkouss/webmacs/blob/1a04fb7bd3f33d39cb4d71621b48c2458712ed39/setup.py#L32
# Don't know why they're using CC for g++.
preConfigure = ''
export CC=$CXX
'';
doCheck = false; # test dependencies not packaged up yet
dontWrapQtApps = true;
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = with lib; {
description = "Keyboard-based web browser with Emacs/conkeror heritage";
longDescription = ''
webmacs is yet another browser for keyboard-based web navigation.
It mainly targets emacs-like navigation, and started as a clone (in terms of
features) of conkeror.
Based on QtWebEngine and Python 3. Fully customizable in Python.
'';
homepage = "https://webmacs.readthedocs.io/en/latest/";
changelog = "https://github.com/parkouss/webmacs/blob/master/CHANGELOG.md";
license = licenses.gpl3;
maintainers = with maintainers; [ jacg ];
platforms = platforms.all;
};
}
|