summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/bpython
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2017-10-29 11:21:40 +0100
committerFlorian Klink <flokli@flokli.de>2017-10-29 12:28:26 +0100
commit978a9ba0cd649e65cb8abe720570f0e6c9dad7a2 (patch)
treef9f962714d0456bccdd936443b74bc1b529c248f /pkgs/development/python-modules/bpython
parentc463a8e0c5bbc7e18215278d290f4b977eafd473 (diff)
bpython: 0.12 -> 0.17
Diffstat (limited to 'pkgs/development/python-modules/bpython')
-rw-r--r--pkgs/development/python-modules/bpython/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bpython/default.nix b/pkgs/development/python-modules/bpython/default.nix
new file mode 100644
index 000000000000..515494b5f931
--- /dev/null
+++ b/pkgs/development/python-modules/bpython/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, buildPythonPackage, fetchurl, pygments, greenlet, curtsies, urwid, requests, mock }:
+
+buildPythonPackage rec {
+ pname = "bpython";
+ version = "0.17";
+ name = "${pname}-${version}";
+
+ # 0.17 is still missing on PyPI, https://github.com/bpython/bpython/issues/706
+ src = fetchurl {
+ url = "https://bpython-interpreter.org/releases/${pname}-${version}.tar.gz";
+ sha256 = "13fyyx06645ikvmj9zmkixr12kzk1c3a3f9s9i2rvaczjycn82lz";
+ };
+
+ propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
+
+ 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 ];
+ };
+}