From c25639f665f763fe0bd1c9232f47d238e72f86fa Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 22 Mar 2026 23:34:38 +0000 Subject: [PATCH] python3Packages.qutip: 5.2.2 -> 5.2.3 Diff: https://github.com/qutip/qutip/compare/v5.2.2...v5.2.3 Changelog: https://github.com/qutip/qutip/releases/tag/v5.2.3 --- .../python-modules/qutip/default.nix | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/qutip/default.nix b/pkgs/development/python-modules/qutip/default.nix index b35b1857396b..817d57053e58 100644 --- a/pkgs/development/python-modules/qutip/default.nix +++ b/pkgs/development/python-modules/qutip/default.nix @@ -26,25 +26,18 @@ cvxpy, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "qutip"; - version = "5.2.2"; + version = "5.2.3"; pyproject = true; src = fetchFromGitHub { owner = "qutip"; repo = "qutip"; - tag = "v${version}"; - hash = "sha256-Av6OVw3dwZUA13W+5kJ2EwGzIMhNn9lZwEsk5EKTbyk="; + tag = "v${finalAttrs.version}"; + hash = "sha256-y3yQf6rCjK0342WnUBieBmCLOWXjBAkxPe+G7TzZKio="; }; - postPatch = - # build-time constraint, used to ensure forward and backward compat - '' - substituteInPlace pyproject.toml setup.cfg \ - --replace-fail "numpy>=2.0.0" "numpy" - ''; - build-system = [ cython oldest-supported-numpy @@ -62,7 +55,7 @@ buildPythonPackage rec { pytest-rerunfailures writableTmpDirAsHomeHook ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; # QuTiP tries to access the home directory to create an rc file for us. # We need to go to another directory to run the tests from there. @@ -94,7 +87,7 @@ buildPythonPackage rec { meta = { description = "Open-source software for simulating the dynamics of closed and open quantum systems"; homepage = "https://qutip.org/"; - changelog = "https://github.com/qutip/qutip/releases/tag/${src.tag}"; + changelog = "https://github.com/qutip/qutip/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = [ ]; badPlatforms = [ @@ -107,4 +100,4 @@ buildPythonPackage rec { "aarch64-linux" ]; }; -} +})