2018-01-21 21:02:05 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pygments, greenlet, curtsies, urwid, requests, mock }:
|
2017-10-29 10:21:40 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bpython";
|
2019-10-24 07:47:26 +01:00
|
|
|
version = "0.18";
|
2017-10-29 10:21:40 +00:00
|
|
|
|
2018-01-21 21:02:05 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:26 +01:00
|
|
|
sha256 = "56cc20dbe568c98c81de4990fddf5862c0d8d3ab0ad1cf7057988abc5f7686c2";
|
2017-10-29 10:21:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
|
|
|
|
|
2019-03-05 09:30:37 +00:00
|
|
|
postInstall = ''
|
2019-10-31 15:38:19 +00:00
|
|
|
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
|
2019-03-05 09:30:37 +00:00
|
|
|
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
|
|
|
|
'';
|
|
|
|
|
2017-10-29 10:21:40 +00:00
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
# tests fail: https://github.com/bpython/bpython/issues/712
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A fancy curses interface to the Python interactive interpreter";
|
|
|
|
homepage = "https://bpython-interpreter.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|