nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

python313Packages.bpython: 0.24 -> 0.25

Changelog: https://github.com/bpython/bpython/blob/0.25/CHANGELOG.rst

+29 -23
+29 -23
pkgs/development/python-modules/bpython/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 curtsies, 6 6 cwcwidth, 7 7 greenlet, 8 8 jedi, 9 9 pygments, 10 10 pytestCheckHook, 11 - pythonOlder, 12 11 pyperclip, 13 12 pyxdg, 14 13 requests, 15 - typing-extensions, 14 + setuptools, 16 15 urwid, 17 16 watchdog, 18 17 }: 19 18 20 19 buildPythonPackage rec { 21 20 pname = "bpython"; 22 - version = "0.24"; 23 - format = "setuptools"; 21 + version = "0.25"; 22 + pyproject = true; 24 23 25 - disabled = pythonOlder "3.7"; 26 - 27 - src = fetchPypi { 28 - inherit pname version; 29 - hash = "sha256-mHNv/XqMSP0r+1PYmKR19CQb3gtnISVwavBNnQj9Pb0="; 24 + src = fetchFromGitHub { 25 + owner = "bpython"; 26 + repo = "bpython"; 27 + tag = version; 28 + hash = "sha256-p5+IQiHNRRazqr+WRdx3Yw+ImG25tdZGLXvMf7woD9w="; 30 29 }; 31 30 32 - propagatedBuildInputs = [ 31 + postPatch = '' 32 + substituteInPlace setup.py \ 33 + --replace-fail 'version = "unknown"' 'version = "${version}"' 34 + ''; 35 + 36 + build-system = [ setuptools ]; 37 + 38 + dependencies = [ 33 39 curtsies 34 40 cwcwidth 35 41 greenlet 36 - jedi 37 42 pygments 38 - pyperclip 39 43 pyxdg 40 44 requests 41 - typing-extensions 42 - urwid 43 - watchdog 44 45 ]; 46 + 47 + optional-dependencies = { 48 + clipboard = [ pyperclip ]; 49 + jedi = [ jedi ]; 50 + urwid = [ urwid ]; 51 + watch = [ watchdog ]; 52 + }; 45 53 46 54 postInstall = '' 47 55 substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \ 48 - --replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython" 56 + --replace "Exec=/usr/bin/bpython" "Exec=bpython" 49 57 ''; 50 58 51 - nativeCheckInputs = [ pytestCheckHook ]; 59 + nativeCheckInputs = [ 60 + pytestCheckHook 61 + ] ++ lib.flatten (lib.attrValues optional-dependencies); 52 62 53 63 pythonImportsCheck = [ "bpython" ]; 54 64 55 - disabledTests = [ 56 - # Check for syntax error ends with an AssertionError 57 - "test_syntaxerror" 58 - ]; 59 - 60 65 meta = with lib; { 66 + changelog = "https://github.com/bpython/bpython/blob/${src.tag}/CHANGELOG.rst"; 61 67 description = "Fancy curses interface to the Python interactive interpreter"; 62 68 homepage = "https://bpython-interpreter.org/"; 63 69 license = licenses.mit;