mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python314Packages.pyturbojpeg: enable tests
This commit is contained in:
parent
c057afbc4d
commit
4ddd9cf248
1 changed files with 10 additions and 8 deletions
|
|
@ -6,7 +6,8 @@
|
|||
libjpeg_turbo,
|
||||
setuptools,
|
||||
numpy,
|
||||
python,
|
||||
pytest-memray,
|
||||
pytestCheckHook,
|
||||
replaceVars,
|
||||
}:
|
||||
|
||||
|
|
@ -32,14 +33,15 @@ buildPythonPackage rec {
|
|||
|
||||
dependencies = [ numpy ];
|
||||
|
||||
# upstream has no tests, but we want to test whether the library is found
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
nativeCheckInputs = [
|
||||
pytest-memray
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
${python.interpreter} -c 'from turbojpeg import TurboJPEG; TurboJPEG()'
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
disabledTests = [
|
||||
# our patch breaks the test
|
||||
"test_library_loading_error_message"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "turbojpeg" ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue