From f1ab3477cd709c6c558a58966acffdc06b062471 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 11 Nov 2024 08:39:43 +0100 Subject: [PATCH] python312Packages.cvxpy: 1.5.3 -> 1.6.0 Diff: https://github.com/cvxpy/cvxpy/compare/refs/tags/v1.5.3...v1.6.0 Changelog: https://github.com/cvxpy/cvxpy/releases/tag/v1.6.0 --- .../python-modules/cvxpy/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/cvxpy/default.nix b/pkgs/development/python-modules/cvxpy/default.nix index a837e141bdc5..de88b31cce3e 100644 --- a/pkgs/development/python-modules/cvxpy/default.nix +++ b/pkgs/development/python-modules/cvxpy/default.nix @@ -2,7 +2,6 @@ lib, stdenv, buildPythonPackage, - pythonOlder, fetchFromGitHub, # build-system @@ -13,12 +12,12 @@ # dependencies clarabel, cvxopt, - ecos, osqp, scipy, scs, # checks + hypothesis, pytestCheckHook, useOpenmp ? (!stdenv.hostPlatform.isDarwin), @@ -26,16 +25,14 @@ buildPythonPackage rec { pname = "cvxpy"; - version = "1.5.3"; + version = "1.6.0"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "cvxpy"; repo = "cvxpy"; tag = "v${version}"; - hash = "sha256-6RaEyFckvF3WhbfeffysMB/zt+aU1NU6B7Nm06znt9k="; + hash = "sha256-t2+j0ZrvGvTv6FoNVpD2MVFZKfGgqTaN32OKwBXM3Zw="; }; # we need to patch out numpy version caps from upstream @@ -53,14 +50,16 @@ buildPythonPackage rec { dependencies = [ clarabel cvxopt - ecos numpy osqp scipy scs ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + hypothesis + pytestCheckHook + ]; # Required flags from https://github.com/cvxpy/cvxpy/releases/tag/v1.1.11 preBuild = lib.optionalString useOpenmp '' @@ -84,7 +83,7 @@ buildPythonPackage rec { description = "Domain-specific language for modeling convex optimization problems in Python"; homepage = "https://www.cvxpy.org/"; downloadPage = "https://github.com/cvxpy/cvxpy//releases"; - changelog = "https://github.com/cvxpy/cvxpy/releases/tag/v${version}"; + changelog = "https://github.com/cvxpy/cvxpy/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ drewrisinger ]; };