587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
121 lines
1.9 KiB
Nix
121 lines
1.9 KiB
Nix
{ 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
|
|
, pytest-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scikit-rf";
|
|
version = "0.32.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scikit-rf";
|
|
repo = pname;
|
|
rev = "refs/tags/v.${version}";
|
|
hash = "sha256-J7V4nQ8OxW4w75OyiMdUal8k5oXSn96g4w6k1+KV1Dw=";
|
|
};
|
|
|
|
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
|
|
pytest-mock
|
|
nbval
|
|
matplotlib
|
|
pyvisa
|
|
openpyxl
|
|
networkx
|
|
];
|
|
|
|
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 (stdenv.isAarch64 && stdenv.isDarwin)
|
|
"skrf/calibration/tests/test_calibration.py";
|
|
|
|
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 ];
|
|
};
|
|
}
|