Commit 4e73ee57 authored by Sigmanificient's avatar Sigmanificient
Browse files

python3Packages.scikit-rf: fix build

parent 1b4d9311
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -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" ];