From d15068a50ca3863e490f1f1482c45a07fc9316fd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 24 Jan 2026 11:29:31 +0100 Subject: [PATCH] python313Packages.astropy-healpix: migrate to finalAttrs --- .../python-modules/astropy-healpix/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/astropy-healpix/default.nix b/pkgs/development/python-modules/astropy-healpix/default.nix index 70d57afb49a9..261309e70c68 100644 --- a/pkgs/development/python-modules/astropy-healpix/default.nix +++ b/pkgs/development/python-modules/astropy-healpix/default.nix @@ -13,14 +13,14 @@ hypothesis, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "astropy-healpix"; version = "1.1.3"; pyproject = true; src = fetchPypi { - inherit version; - pname = lib.replaceStrings [ "-" ] [ "_" ] pname; + inherit (finalAttrs) version; + pname = "astropy_healpix"; hash = "sha256-9SDYOr6CFdPo4aN7K9kRce42pvVfEQ1aLbhj112Bs7c="; }; @@ -52,8 +52,8 @@ buildPythonPackage rec { meta = { description = "BSD-licensed HEALPix for Astropy"; homepage = "https://github.com/astropy/astropy-healpix"; - changelog = "https://github.com/astropy/astropy-healpix/blob/v${version}/CHANGES.rst"; + changelog = "https://github.com/astropy/astropy-healpix/blob/v${finalAttrs.version}/CHANGES.rst"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.smaret ]; }; -} +})