summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/bpython
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <esm@eduardosm.net>2021-04-27 19:55:00 +0200
committerEduardo Sánchez Muñoz <esm@eduardosm.net>2021-05-07 20:12:58 +0200
commit70aebf32b1715a64584ab1db48fa72a29e5d09af (patch)
tree5e6a1f4049113bc085ad4c34dbd65c01cb022555 /pkgs/development/python-modules/bpython
parent7c3bf0cb0140a34e084056ac55215e0f55fa088e (diff)
pythonPackages.bpython: fix build
Diffstat (limited to 'pkgs/development/python-modules/bpython')
-rw-r--r--pkgs/development/python-modules/bpython/default.nix22
1 files changed, 15 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/bpython/default.nix b/pkgs/development/python-modules/bpython/default.nix
index 55e66545538f..64fe3c455ee5 100644
--- a/pkgs/development/python-modules/bpython/default.nix
+++ b/pkgs/development/python-modules/bpython/default.nix
@@ -3,12 +3,15 @@
, fetchPypi
, curtsies
, greenlet
-, mock
+, jedi
, pygments
+, pyxdg
, requests
, substituteAll
, urwid
-, which }:
+, watchdog
+, which
+}:
buildPythonPackage rec {
pname = "bpython";
@@ -24,17 +27,22 @@ buildPythonPackage rec {
which = "${which}/bin/which";
})];
- propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
+ propagatedBuildInputs = [
+ curtsies
+ greenlet
+ pygments
+ pyxdg
+ requests
+ urwid
+ ];
postInstall = ''
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
'';
- checkInputs = [ mock ];
-
- # tests fail: https://github.com/bpython/bpython/issues/712
- doCheck = false;
+ checkInputs = [ jedi watchdog ];
+ pythonImportsCheck = [ "bpython" ];
meta = with lib; {
description = "A fancy curses interface to the Python interactive interpreter";