mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
pythonPackages.bpython: fix build
This commit is contained in:
parent
7c3bf0cb01
commit
70aebf32b1
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user