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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
replaceVars,
cpu_features,
# build-system
cmake,
ninja,
pybind11,
scikit-build-core,
# buildInputs
eigen,
gtest,
matio,
# tests
numpy,
scipy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "piqp";
version = "0.6.2";
pyproject = true;
src = fetchFromGitHub {
owner = "PREDICT-EPFL";
repo = "piqp";
tag = "v${version}";
hash = "sha256-W9t7d+wV5WcphL54e6tpnKxiWFay9UrFmIRKsGk2yMM=";
};
patches = [
(replaceVars ./use-nix-packages.patch {
cpu_features_src = cpu_features.src;
})
];
build-system = [
cmake
ninja
pybind11
scikit-build-core
];
dontUseCmakeConfigure = true;
buildInputs = [
eigen
gtest
matio
];
pythonImportsCheck = [ "piqp" ];
nativeCheckInputs = [
numpy
pytestCheckHook
scipy
];
meta = {
description = "Proximal Interior Point Quadratic Programming solver";
homepage = "https://github.com/PREDICT-EPFL/piqp";
changelog = "https://github.com/PREDICT-EPFL/piqp/releases/tag/v${version}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ renesat ];
};
}
|