diff --git a/pkgs/development/python-modules/qpsolvers/default.nix b/pkgs/development/python-modules/qpsolvers/default.nix new file mode 100644 index 000000000000..18141543c98c --- /dev/null +++ b/pkgs/development/python-modules/qpsolvers/default.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, fetchFromGitHub +, buildPythonPackage +, unittestCheckHook +, daqp +, ecos +, numpy +, osqp +, scipy +, scs +, quadprog +}: +buildPythonPackage rec { + pname = "qpsolvers"; + version = "3.4.0"; + format = "flit"; + + src = fetchFromGitHub { + owner = "qpsolvers"; + repo = "qpsolvers"; + rev = "v${version}"; + hash = "sha256-GrYAhTWABBvU6rGoHi00jBa7ryjCNgzO/hQBTdSW9cg="; + }; + + pythonImportsCheck = [ "qpsolvers" ]; + + propagatedBuildInputs = [ + daqp + ecos + numpy + osqp + scipy + scs + ]; + + nativeCheckInputs = [ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f1ba7ca50076..fbe5c5fca720 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10627,6 +10627,8 @@ self: super: with self; { qpageview = callPackage ../development/python-modules/qpageview { }; + qpsolvers = callPackage ../development/python-modules/qpsolvers { }; + qrcode = callPackage ../development/python-modules/qrcode { }; qreactor = callPackage ../development/python-modules/qreactor { };