diff options
Diffstat (limited to 'pkgs/development/python-modules/scikit-rf/default.nix')
-rw-r--r-- | pkgs/development/python-modules/scikit-rf/default.nix | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/pkgs/development/python-modules/scikit-rf/default.nix b/pkgs/development/python-modules/scikit-rf/default.nix index 1f14444417e4f..39a5e8437ab12 100644 --- a/pkgs/development/python-modules/scikit-rf/default.nix +++ b/pkgs/development/python-modules/scikit-rf/default.nix @@ -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.0.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-TtRj9pqm5153y78MzhlVpL1EvNiNJyjUH1aOlAWU0WE="; + 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 ( |