blob: 9b53768ecf769ed5717c99a92b6e50d1dca6056a (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
replaceVars,
cmake,
numpy,
pybind11,
setuptools,
scipy,
pytestCheckHook,
qdldl,
}:
buildPythonPackage rec {
pname = "qdldl";
version = "0.1.7.post5";
pyproject = true;
src = fetchFromGitHub {
owner = "osqp";
repo = "qdldl-python";
tag = "v${version}";
hash = "sha256-XHdvYWORHDYy/EIqmlmFQZwv+vK3I+rPIrvcEW1JyIw=";
};
# use up-to-date qdldl for CMake v4
patches = [
(replaceVars ./use-qdldl.patch {
inherit qdldl;
})
];
dontUseCmakeConfigure = true;
build-system = [
cmake
numpy
pybind11
setuptools
];
dependencies = [
numpy
scipy
];
propagatedBuildInputs = [
qdldl
];
pythonImportsCheck = [ "qdldl" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Python interface to the QDLDL";
homepage = "https://github.com/osqp/qdldl-python";
changelog = "https://github.com/osqp/qdldl-python/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|