Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 30 lines 907 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pygments, greenlet, curtsies, urwid, requests, mock }: 2 3buildPythonPackage rec { 4 pname = "bpython"; 5 version = "0.18"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "56cc20dbe568c98c81de4990fddf5862c0d8d3ab0ad1cf7057988abc5f7686c2"; 10 }; 11 12 propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ]; 13 14 postInstall = '' 15 substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \ 16 --replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython" 17 ''; 18 19 checkInputs = [ mock ]; 20 21 # tests fail: https://github.com/bpython/bpython/issues/712 22 doCheck = false; 23 24 meta = with stdenv.lib; { 25 description = "A fancy curses interface to the Python interactive interpreter"; 26 homepage = "https://bpython-interpreter.org/"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ flokli ]; 29 }; 30}