1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 13:29:13 +03:00
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.

71 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, curtsies
, cwcwidth
, greenlet
2021-04-27 19:55:00 +02:00
, jedi
, pygments
, pytestCheckHook
, pythonOlder
, pyperclip
2021-04-27 19:55:00 +02:00
, pyxdg
, requests
, substituteAll
, typing-extensions
, urwid
2021-04-27 19:55:00 +02:00
, watchdog
}:
2017-10-29 11:21:40 +01:00
buildPythonPackage rec {
pname = "bpython";
version = "0.23";
format = "setuptools";
disabled = pythonOlder "3.7";
2017-10-29 11:21:40 +01:00
src = fetchPypi {
inherit pname version;
hash = "sha256-nwB4q8iHxIrwiGkeL2R5fWyplKwPS8A8ONBvZX18BSo=";
2017-10-29 11:21:40 +01:00
};
2021-04-27 19:55:00 +02:00
propagatedBuildInputs = [
curtsies
cwcwidth
2021-04-27 19:55:00 +02:00
greenlet
jedi
2021-04-27 19:55:00 +02:00
pygments
pyperclip
2021-04-27 19:55:00 +02:00
pyxdg
requests
typing-extensions
2021-04-27 19:55:00 +02:00
urwid
watchdog
2021-04-27 19:55:00 +02:00
];
2017-10-29 11:21:40 +01: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 11:21:40 +01:00
meta = with lib; {
2017-10-29 11:21:40 +01: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 11:21:40 +01:00
};
}