mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
71 lines
1.2 KiB
Nix
71 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, curtsies
|
|
, cwcwidth
|
|
, greenlet
|
|
, jedi
|
|
, pygments
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyperclip
|
|
, pyxdg
|
|
, requests
|
|
, substituteAll
|
|
, typing-extensions
|
|
, urwid
|
|
, watchdog
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bpython";
|
|
version = "0.24";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-mHNv/XqMSP0r+1PYmKR19CQb3gtnISVwavBNnQj9Pb0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
curtsies
|
|
cwcwidth
|
|
greenlet
|
|
jedi
|
|
pygments
|
|
pyperclip
|
|
pyxdg
|
|
requests
|
|
typing-extensions
|
|
urwid
|
|
watchdog
|
|
];
|
|
|
|
postInstall = ''
|
|
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
|
|
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"bpython"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Check for syntax error ends with an AssertionError
|
|
"test_syntaxerror"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A fancy curses interface to the Python interactive interpreter";
|
|
homepage = "https://bpython-interpreter.org/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ flokli dotlambda ];
|
|
};
|
|
}
|