Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, stdenv
3, fetchFromGitHub
4, buildPythonPackage
5, unittestCheckHook
6, daqp
7, ecos
8, numpy
9, osqp
10, scipy
11, scs
12, quadprog
13}:
14buildPythonPackage rec {
15 pname = "qpsolvers";
16 version = "3.4.0";
17 format = "flit";
18
19 src = fetchFromGitHub {
20 owner = "qpsolvers";
21 repo = "qpsolvers";
22 rev = "v${version}";
23 hash = "sha256-GrYAhTWABBvU6rGoHi00jBa7ryjCNgzO/hQBTdSW9cg=";
24 };
25
26 pythonImportsCheck = [ "qpsolvers" ];
27
28 propagatedBuildInputs = [
29 daqp
30 ecos
31 numpy
32 osqp
33 scipy
34 scs
35 ];
36
37 nativeCheckInputs = [
38 quadprog
39 unittestCheckHook
40 ];
41
42 meta = with lib; {
43 description = "Quadratic programming solvers in Python with a unified API";
44 homepage = "https://github.com/qpsolvers/qpsolvers";
45 license = licenses.lgpl3Plus;
46 maintainers = with maintainers; [ renesat ];
47 };
48}