From 0d9f9a7ff2ee195b457d9e095c4b4026dd5cbda3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Jun 2026 14:37:18 +0200 Subject: [PATCH] python3Packages.parsnip: migrate to finalAttrs --- pkgs/development/python-modules/parsnip/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/parsnip/default.nix b/pkgs/development/python-modules/parsnip/default.nix index 714884f2ed4c..d16bc6c08eca 100644 --- a/pkgs/development/python-modules/parsnip/default.nix +++ b/pkgs/development/python-modules/parsnip/default.nix @@ -7,7 +7,7 @@ numpy, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "parsnip"; version = "0.5.0"; pyproject = true; @@ -15,7 +15,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "glotzerlab"; repo = "parsnip"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-BCEQnClT/dI+t8RwMEQkzbFVCmDThiS9m8ZBCIEFrlg="; }; @@ -35,8 +35,8 @@ buildPythonPackage rec { meta = { description = "Lightweight, performant library for parsing CIF files in Python"; homepage = "https://github.com/glotzerlab/parsnip"; - changelog = "https://github.com/glotzerlab/parsnip/blob/${src.tag}/changelog.rst"; + changelog = "https://github.com/glotzerlab/parsnip/blob/${finalAttrs.src.tag}/changelog.rst"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ doronbehar ]; }; -} +})