Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 87 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, buildPythonPackage, cmake, cvxopt, fetchPypi, future, numpy, oldest-supported-numpy, pytestCheckHook, pythonOlder, qdldl, scipy, setuptools-scm,}:
buildPythonPackage rec { pname = "osqp"; version = "0.6.7.post3"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-sMXgpyHyHJckCXpP1QEIME0pZGjRJOFvNKxnBG9wIOE="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "numpy >= 2.0.0" numpy '';
dontUseCmakeConfigure = true;
nativeBuildInputs = [ cmake numpy oldest-supported-numpy setuptools-scm ];
pythonRelaxDeps = [ "scipy" ];
propagatedBuildInputs = [ numpy qdldl scipy ];
nativeCheckInputs = [ cvxopt pytestCheckHook ];
pythonImportsCheck = [ "osqp" ];
disabledTests = [ # Need an unfree license package - mkl "test_issue14" ] # disable tests failing after scipy 1.12 update # https://github.com/osqp/osqp-python/issues/121 # re-enable once unit tests fixed ++ [ "feasibility_tests" "polish_tests" "update_matrices_tests" ];
meta = with lib; { description = "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 ]; };}