@@ -0,0 +1,27 @@
1+{ stdenv, buildPythonPackage, fetchurl, pygments, greenlet, curtsies, urwid, requests, mock }:
2+
3+buildPythonPackage rec {
4+ pname = "bpython";
5+ version = "0.17";
6+ name = "${pname}-${version}";
7+
8+ # 0.17 is still missing on PyPI, https://github.com/bpython/bpython/issues/706
9+ src = fetchurl {
10+ url = "https://bpython-interpreter.org/releases/${pname}-${version}.tar.gz";
11+ sha256 = "13fyyx06645ikvmj9zmkixr12kzk1c3a3f9s9i2rvaczjycn82lz";
12+ };
13+
14+ propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
15+
16+ checkInputs = [ mock ];
17+
18+ # tests fail: https://github.com/bpython/bpython/issues/712
19+ doCheck = false;
20+
21+ meta = with stdenv.lib; {
22+ description = "A fancy curses interface to the Python interactive interpreter";
23+ homepage = "https://bpython-interpreter.org/";
24+ license = licenses.mit;
25+ maintainers = with maintainers; [ flokli ];
26+ };
27+}