python313Packages.timezonefinder: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-09 10:27:49 +01:00
parent 291739ef51
commit 79a20abe35
@@ -13,7 +13,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "timezonefinder";
version = "8.2.1";
pyproject = true;
@@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "jannikmi";
repo = "timezonefinder";
tag = version;
tag = finalAttrs.version;
hash = "sha256-OuNJ4C5/rQo8o7o8R39FvwqK7lS7IGGDjNaP2n3GTVU=";
};
@@ -45,7 +45,7 @@ buildPythonPackage rec {
pydantic
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
pythonImportsCheck = [ "timezonefinder" ];
@@ -67,9 +67,9 @@ buildPythonPackage rec {
meta = {
description = "Module for finding the timezone of any point on earth (coordinates) offline";
homepage = "https://github.com/MrMinimal64/timezonefinder";
changelog = "https://github.com/jannikmi/timezonefinder/blob/${src.tag}/CHANGELOG.rst";
changelog = "https://github.com/jannikmi/timezonefinder/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "timezonefinder";
};
}
})