From 1f4872f8bfc03a61526adcb659b796ae38bf5a48 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 15 May 2026 01:14:51 +0200 Subject: [PATCH] python3Packages.enturclient: migrate to finalAttrs --- .../python-modules/enturclient/default.nix | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/enturclient/default.nix b/pkgs/development/python-modules/enturclient/default.nix index dc477173d6ef..ad997121e576 100644 --- a/pkgs/development/python-modules/enturclient/default.nix +++ b/pkgs/development/python-modules/enturclient/default.nix @@ -8,7 +8,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "enturclient"; version = "0.3.0"; pyproject = true; @@ -16,10 +16,12 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "hfurubotten"; repo = "enturclient"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-83ui1BYqiRr+IwaJeXNppMnOTQCF9uJD5Kus93CDsUA="; }; + pythonRelaxDeps = [ "async_timeout" ]; + build-system = [ poetry-core ]; dependencies = [ @@ -27,24 +29,17 @@ buildPythonPackage rec { async-timeout ]; - pythonRelaxDeps = [ - "async_timeout" - ]; - pythonImportsCheck = [ "enturclient" ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "tests/dto/" - ]; + unittestFlagsArray = [ "tests/dto/" ]; meta = { description = "Python library for interacting with the Entur.org API"; homepage = "https://github.com/hfurubotten/enturclient"; - license = with lib.licenses; [ mit ]; + changelog = "https://github.com/hfurubotten/enturclient/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})