biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / bpython / default.nix
blob15f562185e1babc9932995db4f2e4cc6c83e8bee
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   curtsies,
6   cwcwidth,
7   greenlet,
8   jedi,
9   pygments,
10   pytestCheckHook,
11   pythonOlder,
12   pyperclip,
13   pyxdg,
14   requests,
15   typing-extensions,
16   urwid,
17   watchdog,
20 buildPythonPackage rec {
21   pname = "bpython";
22   version = "0.24";
23   format = "setuptools";
25   disabled = pythonOlder "3.7";
27   src = fetchPypi {
28     inherit pname version;
29     hash = "sha256-mHNv/XqMSP0r+1PYmKR19CQb3gtnISVwavBNnQj9Pb0=";
30   };
32   propagatedBuildInputs = [
33     curtsies
34     cwcwidth
35     greenlet
36     jedi
37     pygments
38     pyperclip
39     pyxdg
40     requests
41     typing-extensions
42     urwid
43     watchdog
44   ];
46   postInstall = ''
47     substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
48       --replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
49   '';
51   nativeCheckInputs = [ pytestCheckHook ];
53   pythonImportsCheck = [ "bpython" ];
55   disabledTests = [
56     # Check for syntax error ends with an AssertionError
57     "test_syntaxerror"
58   ];
60   meta = with lib; {
61     description = "Fancy curses interface to the Python interactive interpreter";
62     homepage = "https://bpython-interpreter.org/";
63     license = licenses.mit;
64     maintainers = with maintainers; [
65       flokli
66       dotlambda
67     ];
68   };