depot/third_party/nixpkgs/pkgs/development/python-modules/qpsolvers/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

50 lines
876 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, buildPythonPackage
, unittestCheckHook
, flit-core
, daqp
, ecos
, numpy
, osqp
, scipy
, scs
, quadprog
}:
buildPythonPackage rec {
pname = "qpsolvers";
version = "4.0.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "qpsolvers";
repo = "qpsolvers";
rev = "refs/tags/v${version}";
hash = "sha256-s1d8oTrmptS3exUqn9HSSla6P4dIxS/qNalsDTbFmFs=";
};
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 ];
};
}