1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
scipy,
pandas,
matplotlib,
nbval,
pyvisa,
networkx,
ipython,
ipykernel,
ipywidgets,
jupyter-client,
sphinx-rtd-theme,
sphinx,
nbsphinx,
openpyxl,
setuptools,
pytestCheckHook,
pytest-cov-stub,
pytest-mock,
}:
buildPythonPackage rec {
pname = "scikit-rf";
version = "1.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "scikit-rf";
repo = "scikit-rf";
tag = "v${version}";
hash = "sha256-wQOphwG5/4Bfa+re3S0d7lS4CJlKRjrRqnFZKaTG70M=";
};
build-system = [ setuptools ];
dependencies = [
numpy
scipy
pandas
];
optional-dependencies = {
plot = [ matplotlib ];
xlsx = [ openpyxl ];
netw = [ networkx ];
visa = [ pyvisa ];
docs = [
ipython
ipykernel
ipywidgets
jupyter-client
sphinx-rtd-theme
sphinx
nbsphinx
openpyxl
nbval
];
};
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { MPLBACKEND = "Agg"; };
nativeCheckInputs = [
pytest-mock
matplotlib
pyvisa
openpyxl
networkx
pytestCheckHook
pytest-cov-stub
];
# 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"
];
pythonImportsCheck = [ "skrf" ];
meta = {
description = "Python library for RF/Microwave engineering";
homepage = "https://scikit-rf.org/";
changelog = "https://github.com/scikit-rf/scikit-rf/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ lugarun ];
};
}
|