Files
nixpkgs/pkgs/development/python-modules/osqp/default.nix
T
Martin Weinelt 8056f9250c treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

70 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, cmake
, cvxopt
, fetchPypi
, future
, numpy
, pytestCheckHook
, pythonOlder
, qdldl
, scipy
, setuptools-scm
}:
buildPythonPackage rec {
pname = "osqp";
version = "0.6.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-A+Rg5oPsLOD4OTU936PEyP+lCauM9qKyr7tYb6RT4YA=";
};
dontUseCmakeConfigure = true;
nativeBuildInputs = [
cmake
setuptools-scm
];
propagatedBuildInputs = [
future
numpy
qdldl
scipy
];
nativeCheckInputs = [
cvxopt
pytestCheckHook
];
pythonImportsCheck = [
"osqp"
];
disabledTests = [
# Need an unfree license package - mkl
"test_issue14"
];
meta = with lib; {
description = "The Operator Splitting QP Solver";
longDescription = ''
Numerical optimization package for solving problems in the form
minimize 0.5 x' P x + q' x
subject to l <= A x <= u
where x in R^n is the optimization variable
'';
homepage = "https://osqp.org/";
downloadPage = "https://github.com/oxfordcontrol/osqp-python/releases";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}