Merge pull request from fabaff/bpython-fix

python310Packages.bpython: disable failing test
This commit is contained in:
Fabian Affolter 2022-05-03 19:36:04 +02:00 committed by GitHub
commit cd78b18a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,10 +3,12 @@
, fetchPypi , fetchPypi
, curtsies , curtsies
, cwcwidth , cwcwidth
, dataclasses
, greenlet , greenlet
, jedi , jedi
, pygments , pygments
, pytestCheckHook , pytestCheckHook
, pythonOlder
, pyperclip , pyperclip
, pyxdg , pyxdg
, requests , requests
@ -19,10 +21,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bpython"; pname = "bpython";
version = "0.22.1"; version = "0.22.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1fb1e0a52332579fc4e3dcf75e21796af67aae2be460179ecfcce9530a49a200"; hash = "sha256-H7HgpSMyV5/E49z3XiF5avZ6rivkYBeez8zpUwpJogA=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -37,6 +42,8 @@ buildPythonPackage rec {
typing-extensions typing-extensions
urwid urwid
watchdog watchdog
] ++ lib.optionals (pythonOlder "3.7") [
dataclasses
]; ];
postInstall = '' postInstall = ''
@ -48,7 +55,14 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "bpython" ]; pythonImportsCheck = [
"bpython"
];
disabledTests = [
# Check for syntax error ends with an AssertionError
"test_syntaxerror"
];
meta = with lib; { meta = with lib; {
description = "A fancy curses interface to the Python interactive interpreter"; description = "A fancy curses interface to the Python interactive interpreter";