2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-06-03 22:09:54 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, curtsies
|
2021-12-20 20:40:40 +00:00
|
|
|
, cwcwidth
|
2020-06-03 22:09:54 +02:00
|
|
|
, greenlet
|
2021-04-27 19:55:00 +02:00
|
|
|
, jedi
|
2020-06-03 22:09:54 +02:00
|
|
|
, pygments
|
2021-12-20 20:40:40 +00:00
|
|
|
, pytestCheckHook
|
2022-05-03 10:18:45 +02:00
|
|
|
, pythonOlder
|
2021-12-20 20:40:40 +00:00
|
|
|
, pyperclip
|
2021-04-27 19:55:00 +02:00
|
|
|
, pyxdg
|
2020-06-03 22:09:54 +02:00
|
|
|
, requests
|
|
|
|
, substituteAll
|
2021-12-20 20:40:40 +00:00
|
|
|
, typing-extensions
|
2020-06-03 22:09:54 +02:00
|
|
|
, urwid
|
2021-04-27 19:55:00 +02:00
|
|
|
, watchdog
|
|
|
|
}:
|
2017-10-29 11:21:40 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bpython";
|
2022-09-14 23:36:04 +02:00
|
|
|
version = "0.23";
|
2022-05-03 10:18:45 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-11-28 02:26:00 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2017-10-29 11:21:40 +01:00
|
|
|
|
2018-01-21 22:02:05 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-14 23:36:04 +02:00
|
|
|
hash = "sha256-nwB4q8iHxIrwiGkeL2R5fWyplKwPS8A8ONBvZX18BSo=";
|
2017-10-29 11:21:40 +01:00
|
|
|
};
|
|
|
|
|
2021-04-27 19:55:00 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
curtsies
|
2021-12-20 20:40:40 +00:00
|
|
|
cwcwidth
|
2021-04-27 19:55:00 +02:00
|
|
|
greenlet
|
2021-12-20 20:40:40 +00:00
|
|
|
jedi
|
2021-04-27 19:55:00 +02:00
|
|
|
pygments
|
2021-12-20 20:40:40 +00:00
|
|
|
pyperclip
|
2021-04-27 19:55:00 +02:00
|
|
|
pyxdg
|
|
|
|
requests
|
2021-12-20 20:40:40 +00:00
|
|
|
typing-extensions
|
2021-04-27 19:55:00 +02:00
|
|
|
urwid
|
2021-12-20 20:40:40 +00:00
|
|
|
watchdog
|
2021-04-27 19:55:00 +02:00
|
|
|
];
|
2017-10-29 11:21:40 +01:00
|
|
|
|
2019-03-05 10:30:37 +01:00
|
|
|
postInstall = ''
|
2019-10-31 16:38:19 +01:00
|
|
|
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
|
2019-03-05 10:30:37 +01:00
|
|
|
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
|
|
|
|
'';
|
|
|
|
|
2021-12-20 20:40:40 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-05-03 10:18:45 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"bpython"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Check for syntax error ends with an AssertionError
|
|
|
|
"test_syntaxerror"
|
|
|
|
];
|
2017-10-29 11:21:40 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-10-29 11:21:40 +01:00
|
|
|
description = "A fancy curses interface to the Python interactive interpreter";
|
|
|
|
homepage = "https://bpython-interpreter.org/";
|
|
|
|
license = licenses.mit;
|
2021-12-20 20:40:40 +00:00
|
|
|
maintainers = with maintainers; [ flokli dotlambda ];
|
2017-10-29 11:21:40 +01:00
|
|
|
};
|
|
|
|
}
|