From 6ecc1cbef0ceb0708f7be68e6c66642ad2fe802d Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 24 Jan 2026 14:28:26 +0100 Subject: [PATCH] python3Packages.rustworkx: 0.16.0 -> 0.17.1 Diff: https://github.com/Qiskit/rustworkx/compare/0.16.0...0.17.1 Changelog: https://github.com/Qiskit/rustworkx/releases/tag/0.17.1 --- .../python-modules/rustworkx/default.nix | 33 ++++++++++++++----- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/rustworkx/default.nix b/pkgs/development/python-modules/rustworkx/default.nix index 08765438fcca..e5ec848e6946 100644 --- a/pkgs/development/python-modules/rustworkx/default.nix +++ b/pkgs/development/python-modules/rustworkx/default.nix @@ -2,33 +2,47 @@ lib, fetchFromGitHub, buildPythonPackage, - cargo, rustPlatform, + + # nativeBuildInputs + cargo, rustc, + + # build-system setuptools, setuptools-rust, + + # dependencies numpy, + + # tests fixtures, networkx, - testtools, pytestCheckHook, + testtools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "rustworkx"; - version = "0.16.0"; + version = "0.17.1"; pyproject = true; src = fetchFromGitHub { owner = "Qiskit"; repo = "rustworkx"; - rev = version; - hash = "sha256-hzB99ReL1bTmj1mYne9rJp2rBeMnmIR17VQFVl7rzr0="; + tag = finalAttrs.version; + hash = "sha256-aBKGJwm9EmGwLOhIx6qTuDco5uNcnwUlZf3ztFzmIGs="; }; + # Otherwise, `rust-src` is required + # https://github.com/Qiskit/rustworkx/pull/1447 + postPatch = '' + rm -rf .cargo/config.toml + ''; + cargoDeps = rustPlatform.fetchCargoVendor { - inherit src; - hash = "sha256-9NMTGq8KzIvnOXrsUpFHrtM9K/E7RMrE/Aa9mtO7pTI="; + inherit (finalAttrs) pname version src; + hash = "sha256-2jqyXk6xWpSGdpaVGu7YW9643MBYDfl3A6InFw/cCUM="; }; nativeBuildInputs = [ @@ -60,7 +74,8 @@ buildPythonPackage rec { meta = { description = "High performance Python graph library implemented in Rust"; homepage = "https://github.com/Qiskit/rustworkx"; + changelog = "https://github.com/Qiskit/rustworkx/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ raitobezarius ]; }; -} +})