python3Packages.pudb: fix build, enable tests
This commit is contained in:
parent
3157f9a404
commit
f3def87b05
1 changed files with 20 additions and 6 deletions
|
@ -1,29 +1,43 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, isPy3k
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, jedi
|
||||||
, pygments
|
, pygments
|
||||||
, urwid
|
, urwid
|
||||||
, isPy3k
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pudb";
|
pname = "pudb";
|
||||||
version = "2021.1";
|
version = "2021.1";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "309ee82b45a0ffca0bc4c7f521fd3e357589c764f339bdf9dcabb7ad40692d6e";
|
sha256 = "309ee82b45a0ffca0bc4c7f521fd3e357589c764f339bdf9dcabb7ad40692d6e";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pygments urwid ];
|
propagatedBuildInputs = [
|
||||||
|
jedi
|
||||||
|
pygments
|
||||||
|
urwid
|
||||||
|
];
|
||||||
|
|
||||||
# Tests fail on python 3 due to writes to the read-only home directory
|
preCheck = ''
|
||||||
doCheck = !isPy3k;
|
export HOME=$TMPDIR
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A full-screen, console-based Python debugger";
|
description = "A full-screen, console-based Python debugger";
|
||||||
|
homepage = "https://github.com/inducer/pudb";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.all;
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue