5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
50 lines
866 B
Nix
50 lines
866 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, unittestCheckHook
|
|
, flit-core
|
|
, daqp
|
|
, ecos
|
|
, numpy
|
|
, osqp
|
|
, scipy
|
|
, scs
|
|
, quadprog
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "qpsolvers";
|
|
version = "3.4.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qpsolvers";
|
|
repo = "qpsolvers";
|
|
rev = "v${version}";
|
|
hash = "sha256-GrYAhTWABBvU6rGoHi00jBa7ryjCNgzO/hQBTdSW9cg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|