blob: 31c77c2d3291d729fee92c028810cbaaf2529c59 (
plain)
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
|
{
lib,
buildPythonPackage,
cvxopt,
fetchFromGitHub,
matplotlib,
numpy,
numpydoc,
pytest-timeout,
pytestCheckHook,
scipy,
setuptools-scm,
setuptools,
}:
buildPythonPackage rec {
pname = "control";
version = "0.10.2";
pyproject = true;
src = fetchFromGitHub {
owner = "python-control";
repo = "python-control";
tag = version;
hash = "sha256-E9RZDUK01hzjutq83XdLr3d97NwjmQzt65hqVg2TBGE=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
numpy
scipy
matplotlib
];
optional-dependencies = {
# slycot is not in nixpkgs
# slycot = [ slycot ];
cvxopt = [ cvxopt ];
};
nativeCheckInputs = [
numpydoc
pytest-timeout
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "control" ];
disabledTestPaths = [
# Don't test the docs
"doc/test_sphinxdocs.py"
];
meta = {
description = "Python Control Systems Library";
changelog = "https://github.com/python-control/python-control/releases/tag/${src.tag}";
homepage = "https://github.com/python-control/python-control";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ Peter3579 ];
};
}
|