python3Packages.pudb: add missing dependencies

This commit is contained in:
Fabian Affolter 2021-11-29 14:12:52 +01:00 committed by Jonathan Ringer
parent 3281194f48
commit 2f3e4c9d1c
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -1,17 +1,22 @@
{ lib
, buildPythonPackage
, dataclasses
, isPy3k
, fetchPypi
, jedi
, pygments
, urwid
, urwid-readline
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pudb";
version = "2021.2.2";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
@ -23,15 +28,22 @@ buildPythonPackage rec {
jedi
pygments
urwid
urwid-readline
] ++ lib.optionals (pythonOlder "3.7") [
dataclasses
];
checkInputs = [
pytest-mock
pytestCheckHook
];
preCheck = ''
export HOME=$TMPDIR
'';
checkInputs = [
pytest-mock
pytestCheckHook
pythonImportsCheck = [
"pudb"
];
meta = with lib; {