3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/bpython/default.nix

46 lines
1 KiB
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, curtsies
, greenlet
, mock
, pygments
, requests
, substituteAll
, urwid
, which }:
2017-10-29 10:21:40 +00:00
buildPythonPackage rec {
pname = "bpython";
2020-04-05 11:44:18 +01:00
version = "0.19";
2017-10-29 10:21:40 +00:00
src = fetchPypi {
inherit pname version;
2020-04-05 11:44:18 +01:00
sha256 = "1764ikgj24jjq46s50apwkydqvy5a13adb2nbszk8kbci6df0v27";
2017-10-29 10:21:40 +00:00
};
patches = [ (substituteAll {
src = ./clipboard-make-which-substitutable.patch;
which = "${which}/bin/which";
})];
2017-10-29 10:21:40 +00:00
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
postInstall = ''
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
--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 ];
};
}