blob: c1d9a1a8f82f1def37dee29a0e6c3bef574369a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ stdenv, buildPythonPackage, fetchPypi, pygments, greenlet, curtsies, urwid, requests, mock }:
buildPythonPackage rec {
pname = "bpython";
version = "0.17.1";
src = fetchPypi {
inherit pname version;
sha256 = "8907c510bca3c4d9bc0a157279bdc5e3b739cc68c0f247167279b6fe4becb02f";
};
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
postInstall = ''
substituteInPlace "$out/share/applications/bpython.desktop" \
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
'';
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 ];
};
}
|