pythonPackages.bpython: fix build
This commit is contained in:
parent
7c3bf0cb01
commit
70aebf32b1
1 changed files with 15 additions and 7 deletions
|
@ -3,12 +3,15 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, curtsies
|
, curtsies
|
||||||
, greenlet
|
, greenlet
|
||||||
, mock
|
, jedi
|
||||||
, pygments
|
, pygments
|
||||||
|
, pyxdg
|
||||||
, requests
|
, requests
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, urwid
|
, urwid
|
||||||
, which }:
|
, watchdog
|
||||||
|
, which
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "bpython";
|
pname = "bpython";
|
||||||
|
@ -24,17 +27,22 @@ buildPythonPackage rec {
|
||||||
which = "${which}/bin/which";
|
which = "${which}/bin/which";
|
||||||
})];
|
})];
|
||||||
|
|
||||||
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
|
propagatedBuildInputs = [
|
||||||
|
curtsies
|
||||||
|
greenlet
|
||||||
|
pygments
|
||||||
|
pyxdg
|
||||||
|
requests
|
||||||
|
urwid
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
|
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
|
||||||
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
|
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ mock ];
|
checkInputs = [ jedi watchdog ];
|
||||||
|
pythonImportsCheck = [ "bpython" ];
|
||||||
# tests fail: https://github.com/bpython/bpython/issues/712
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A fancy curses interface to the Python interactive interpreter";
|
description = "A fancy curses interface to the Python interactive interpreter";
|
||||||
|
|
Loading…
Reference in a new issue