nixpkgs/pkgs/development/python-modules/bpython/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, curtsies
, cwcwidth
, dataclasses
, greenlet
2021-04-27 17:55:00 +00:00
, jedi
, pygments
, pytestCheckHook
, pythonOlder
, pyperclip
2021-04-27 17:55:00 +00:00
, pyxdg
, requests
, substituteAll
, typing-extensions
, urwid
2021-04-27 17:55:00 +00:00
, watchdog
}:
2017-10-29 10:21:40 +00:00
buildPythonPackage rec {
pname = "bpython";
version = "0.22.1";
format = "setuptools";
disabled = pythonOlder "3.6";
2017-10-29 10:21:40 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-H7HgpSMyV5/E49z3XiF5avZ6rivkYBeez8zpUwpJogA=";
2017-10-29 10:21:40 +00:00
};
2021-04-27 17:55:00 +00:00
propagatedBuildInputs = [
curtsies
cwcwidth
2021-04-27 17:55:00 +00:00
greenlet
jedi
2021-04-27 17:55:00 +00:00
pygments
pyperclip
2021-04-27 17:55:00 +00:00
pyxdg
requests
typing-extensions
2021-04-27 17:55:00 +00:00
urwid
watchdog
] ++ lib.optionals (pythonOlder "3.7") [
dataclasses
2021-04-27 17:55:00 +00:00
];
2017-10-29 10:21:40 +00:00
postInstall = ''
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"bpython"
];
disabledTests = [
# Check for syntax error ends with an AssertionError
"test_syntaxerror"
];
2017-10-29 10:21:40 +00:00
meta = with lib; {
2017-10-29 10:21:40 +00:00
description = "A fancy curses interface to the Python interactive interpreter";
homepage = "https://bpython-interpreter.org/";
license = licenses.mit;
maintainers = with maintainers; [ flokli dotlambda ];
2017-10-29 10:21:40 +00:00
};
}