mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python3Packages.pysptk: enable tests
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
cython,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
decorator,
|
||||
numpy,
|
||||
@@ -35,8 +36,20 @@ buildPythonPackage (finalAttrs: {
|
||||
standard-pkg-resources
|
||||
];
|
||||
|
||||
# Tests are not part of the PyPI releases
|
||||
doCheck = false;
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Remove source to prevent the tests from trying to import it
|
||||
preCheck = ''
|
||||
rm -r pysptk
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# These tests rely on test data not present in the pypi release
|
||||
"test_rapt_regression"
|
||||
"test_swipe_regression"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pysptk" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user