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
|
{ lib
, buildPythonPackage
, fetchPypi
, curtsies
, cwcwidth
, greenlet
, jedi
, pygments
, pytestCheckHook
, pythonOlder
, pyperclip
, pyxdg
, requests
, substituteAll
, typing-extensions
, urwid
, watchdog
}:
buildPythonPackage rec {
pname = "bpython";
version = "0.24";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-mHNv/XqMSP0r+1PYmKR19CQb3gtnISVwavBNnQj9Pb0=";
};
propagatedBuildInputs = [
curtsies
cwcwidth
greenlet
jedi
pygments
pyperclip
pyxdg
requests
typing-extensions
urwid
watchdog
];
postInstall = ''
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
'';
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"bpython"
];
disabledTests = [
# Check for syntax error ends with an AssertionError
"test_syntaxerror"
];
meta = with lib; {
description = "A fancy curses interface to the Python interactive interpreter";
homepage = "https://bpython-interpreter.org/";
license = licenses.mit;
maintainers = with maintainers; [ flokli dotlambda ];
};
}
|