nixpkgs/pkgs/development/python-modules/bpython/default.nix
2021-12-21 13:59:29 +00:00

60 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, curtsies
, cwcwidth
, greenlet
, jedi
, pygments
, pytestCheckHook
, pyperclip
, pyxdg
, requests
, substituteAll
, typing-extensions
, urwid
, watchdog
}:
buildPythonPackage rec {
pname = "bpython";
version = "0.22.1";
src = fetchPypi {
inherit pname version;
sha256 = "1fb1e0a52332579fc4e3dcf75e21796af67aae2be460179ecfcce9530a49a200";
};
propagatedBuildInputs = [
curtsies
cwcwidth
greenlet
jedi
pygments
pyperclip
pyxdg
requests
typing-extensions
urwid
watchdog
];
postInstall = ''
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "bpython" ];
meta = with lib; {
description = "A fancy curses interface to the Python interactive interpreter";
homepage = "https://bpython-interpreter.org/";
license = licenses.mit;
maintainers = with maintainers; [ flokli dotlambda ];
};
}