python3Packages.coconut: switch to pytestCheckHook
This commit is contained in:
parent
44afe6bba1
commit
9c06d17d95
|
@ -1,17 +1,15 @@
|
||||||
{
|
{ lib
|
||||||
lib,
|
, buildPythonApplication
|
||||||
buildPythonApplication,
|
, fetchFromGitHub
|
||||||
fetchFromGitHub,
|
, fetchpatch
|
||||||
fetchpatch,
|
, cpyparsing
|
||||||
|
, ipykernel
|
||||||
cpyparsing,
|
, mypy
|
||||||
ipykernel,
|
, pygments
|
||||||
mypy,
|
, pytestCheckHook
|
||||||
pygments,
|
, prompt_toolkit
|
||||||
pytest,
|
, tkinter
|
||||||
prompt_toolkit,
|
, watchdog
|
||||||
tkinter,
|
|
||||||
watchdog
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
|
@ -35,13 +33,19 @@ buildPythonApplication rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest tkinter ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
tkinter
|
||||||
|
];
|
||||||
|
|
||||||
# Currently most tests do not work on Hydra due to external fetches.
|
# Currently most tests do not work on Hydra due to external fetches.
|
||||||
checkPhase = ''
|
pytestFlagsArray = [
|
||||||
pytest tests/constants_test.py
|
"tests/constants_test.py"
|
||||||
pytest tests/main_test.py::TestShell::test_compile_to_file
|
"tests/main_test.py::TestShell::test_compile_to_file"
|
||||||
pytest tests/main_test.py::TestShell::test_convenience
|
"tests/main_test.py::TestShell::test_convenience"
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "coconut" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://coconut-lang.org/";
|
homepage = "http://coconut-lang.org/";
|
||||||
|
|
Loading…
Reference in a new issue