git.iko.soy/typeable/nixpkgs
on master help sign in
python310Packages.bpython: disable failing test
commit8aa77956a1a819a0be41a20105015d84e68196cf authorFabian Affolter <mail@fabian-affolter.ch> dateTue 3 May 2022, 10:18 (5 years ago) parentcbe587c
1 file changed+16−2
pkgs/development/python-modules/bpython/default.nix+16−2
pkgs/development/python-modules/bpython/default.nix+16−2
@@ -3,10 +3,12 @@
33, fetchPypi
44, curtsies
55, cwcwidth
6+, dataclasses
67, greenlet
78, jedi
89, pygments
910, pytestCheckHook
11+, pythonOlder
1012, pyperclip
1113, pyxdg
1214, requests
@@ -19,10 +21,13 @@
1921buildPythonPackage rec {
2022 pname = "bpython";
2123 version = "0.22.1";
24+ format = "setuptools";
25+
26+ disabled = pythonOlder "3.6";
2227
2328 src = fetchPypi {
2429 inherit pname version;
25− sha256 = "1fb1e0a52332579fc4e3dcf75e21796af67aae2be460179ecfcce9530a49a200";
30+ hash = "sha256-H7HgpSMyV5/E49z3XiF5avZ6rivkYBeez8zpUwpJogA=";
2631 };
2732
2833 propagatedBuildInputs = [
@@ -37,6 +42,8 @@ buildPythonPackage rec {
3742 typing-extensions
3843 urwid
3944 watchdog
45+ ] ++ lib.optionals (pythonOlder "3.7") [
46+ dataclasses
4047 ];
4148
4249 postInstall = ''
@@ -48,7 +55,14 @@ buildPythonPackage rec {
4855 pytestCheckHook
4956 ];
5057
51− pythonImportsCheck = [ "bpython" ];
58+ pythonImportsCheck = [
59+ "bpython"
60+ ];
61+
62+ disabledTests = [
63+ # Check for syntax error ends with an AssertionError
64+ "test_syntaxerror"
65+ ];
5266
5367 meta = with lib; {
5468 description = "A fancy curses interface to the Python interactive interpreter";