2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, unittestCheckHook
|
|
|
|
, flit-core
|
|
|
|
, daqp
|
|
|
|
, ecos
|
|
|
|
, numpy
|
|
|
|
, osqp
|
|
|
|
, scipy
|
|
|
|
, scs
|
|
|
|
, quadprog
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qpsolvers";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "4.2.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qpsolvers";
|
|
|
|
repo = "qpsolvers";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-brniRAGwN/areB7MnaGeF7CdNku7DG/Q+8TmCXY99iU=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "qpsolvers" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
daqp
|
|
|
|
ecos
|
|
|
|
numpy
|
|
|
|
osqp
|
|
|
|
scipy
|
|
|
|
scs
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
flit-core
|
|
|
|
quadprog
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Quadratic programming solvers in Python with a unified API";
|
|
|
|
homepage = "https://github.com/qpsolvers/qpsolvers";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ renesat ];
|
|
|
|
};
|
|
|
|
}
|