2023-03-15 16:39:30 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, pandas
|
|
|
|
, matplotlib
|
|
|
|
, tox
|
|
|
|
, coverage
|
|
|
|
, flake8
|
|
|
|
, nbval
|
|
|
|
, pyvisa
|
|
|
|
, networkx
|
|
|
|
, ipython
|
|
|
|
, ipykernel
|
|
|
|
, ipywidgets
|
|
|
|
, jupyter-client
|
|
|
|
, sphinx-rtd-theme
|
|
|
|
, sphinx
|
|
|
|
, nbsphinx
|
|
|
|
, openpyxl
|
|
|
|
, qtpy
|
|
|
|
, pyqtgraph
|
|
|
|
, pyqt5
|
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-cov
|
2023-11-16 04:20:00 +00:00
|
|
|
, pytest-mock
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-rf";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.31.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scikit-rf";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-MSFlajXdNZ/BfTLuegy+T9iNFdXk/TWN8J3TcYbYLbI=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
plot = [
|
|
|
|
matplotlib
|
|
|
|
];
|
|
|
|
xlsx = [
|
|
|
|
openpyxl
|
|
|
|
];
|
|
|
|
netw = [
|
|
|
|
networkx
|
|
|
|
];
|
|
|
|
visa = [
|
|
|
|
pyvisa
|
|
|
|
];
|
|
|
|
docs = [
|
|
|
|
ipython
|
|
|
|
ipykernel
|
|
|
|
ipywidgets
|
|
|
|
jupyter-client
|
|
|
|
sphinx-rtd-theme
|
|
|
|
sphinx
|
|
|
|
nbsphinx
|
|
|
|
openpyxl
|
|
|
|
];
|
|
|
|
qtapps = [
|
|
|
|
qtpy
|
|
|
|
pyqtgraph
|
|
|
|
pyqt5
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
tox
|
|
|
|
coverage
|
|
|
|
flake8
|
|
|
|
pytest-cov
|
2023-11-16 04:20:00 +00:00
|
|
|
pytest-mock
|
2023-03-15 16:39:30 +00:00
|
|
|
nbval
|
|
|
|
matplotlib
|
|
|
|
pyvisa
|
|
|
|
openpyxl
|
|
|
|
networkx
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# test_calibration.py generates a divide by zero error on darwin
|
|
|
|
# https://github.com/scikit-rf/scikit-rf/issues/972
|
|
|
|
disabledTestPaths =
|
|
|
|
lib.optional (stdenv.isAarch64 && stdenv.isDarwin)
|
|
|
|
"skrf/calibration/tests/test_calibration.py";
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"skrf"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python library for RF/Microwave engineering";
|
|
|
|
homepage = "https://scikit-rf.org/";
|
|
|
|
changelog = "https://github.com/scikit-rf/scikit-rf/releases/tag/v${version}";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ lugarun ];
|
|
|
|
};
|
|
|
|
}
|