diff --git a/pkgs/development/python-modules/scikit-rf/default.nix b/pkgs/development/python-modules/scikit-rf/default.nix index 4d90c831fbcb..e8494603680d 100644 --- a/pkgs/development/python-modules/scikit-rf/default.nix +++ b/pkgs/development/python-modules/scikit-rf/default.nix @@ -22,6 +22,7 @@ pytestCheckHook, pytest-cov-stub, pytest-mock, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { @@ -44,6 +45,8 @@ buildPythonPackage rec { pandas ]; + pythonRemoveDeps = [ "pre-commit" ]; + optional-dependencies = { plot = [ matplotlib ]; xlsx = [ openpyxl ]; @@ -72,13 +75,17 @@ buildPythonPackage rec { networkx pytestCheckHook pytest-cov-stub + writableTmpDirAsHomeHook ]; - # test_calibration.py generates a divide by zero error on darwin - # and fails on Linux after updates of dependenceis - # https://github.com/scikit-rf/scikit-rf/issues/972 - disabledTestPaths = [ - "skrf/calibration/tests/test_calibration.py" + pytestFlags = [ "-Wignore::pytest.PytestUnraisableExceptionWarning" ]; + + disabledTests = [ + # numpy.exceptions.VisibleDeprecationWarning: dtype(): align should be + # passed as Python or NumPy boolean but got `align=0` + "test_constructor_from_pathlib" + "test_constructor_from_pickle" + "test_constructor_from_touchstone_special_encoding" ]; pythonImportsCheck = [ "skrf" ];