Unverified Commit 9afbf393 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #331647 from r-ryantm/auto-update/python312Packages.scikit-rf

python312Packages.scikit-rf: 1.1.0 -> 1.2.0
parents 26d22260 c596b526
Loading
Loading
Loading
Loading
+15 −25
Original line number Diff line number Diff line
@@ -8,9 +8,6 @@
  scipy,
  pandas,
  matplotlib,
  tox,
  coverage,
  flake8,
  nbval,
  pyvisa,
  networkx,
@@ -22,38 +19,39 @@
  sphinx,
  nbsphinx,
  openpyxl,
  qtpy,
  pyqtgraph,
  pyqt5,
  setuptools,
  pytestCheckHook,
  pytest-cov,
  pytest-mock,
}:

buildPythonPackage rec {
  pname = "scikit-rf";
  version = "1.1.0";
  version = "1.2.0";
  pyproject = true;

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "scikit-rf";
    repo = pname;
    repo = "scikit-rf";
    rev = "refs/tags/v${version}";
    hash = "sha256-xLgttefCRj8U2Wqif/28FiSjPjQn9YYCB+stlhZiIUo=";
    hash = "sha256-K+iOpgEKwYtv8be/dLeDHYUDI8xZsoqB7mYDkVeCA10=";
  };

  buildInputs = [ setuptools ];
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "--cov=skrf" ""
  '';

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    numpy
    scipy
    pandas
  ];

  passthru.optional-dependencies = {
  optional-dependencies = {
    plot = [ matplotlib ];
    xlsx = [ openpyxl ];
    netw = [ networkx ];
@@ -68,28 +66,20 @@ buildPythonPackage rec {
      nbsphinx
      openpyxl
    ];
    qtapps = [
      qtpy
      pyqtgraph
      pyqt5
    ];
  };

  env = lib.optionalAttrs stdenv.isDarwin { MPLBACKEND = "Agg"; };

  nativeCheckInputs = [
    tox
    coverage
    flake8
    pytest-cov
    pytest-mock
    nbval
    matplotlib
    pyvisa
    openpyxl
    networkx
    pytestCheckHook
  ];

  checkInputs = [ pytestCheckHook ];

  # test_calibration.py generates a divide by zero error on darwin
  # https://github.com/scikit-rf/scikit-rf/issues/972
  disabledTestPaths = lib.optional (