From 9135eaaf64092c7f3c8baed4c0b52edf2138ea0a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 27 May 2026 11:55:54 +0200 Subject: [PATCH] python3Packages.wsgidav: migrate to finalAttrs --- pkgs/development/python-modules/wsgidav/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/wsgidav/default.nix b/pkgs/development/python-modules/wsgidav/default.nix index c08732cb7c46..0880c9ed4013 100644 --- a/pkgs/development/python-modules/wsgidav/default.nix +++ b/pkgs/development/python-modules/wsgidav/default.nix @@ -17,7 +17,7 @@ webtest, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "wsgidav"; version = "4.3.4"; pyproject = true; @@ -25,7 +25,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "mar10"; repo = "wsgidav"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-2Pn5kMioMr4COpcIDEhlfolG0/5hpv8zMO0X7l6fSwY="; }; @@ -61,9 +61,9 @@ buildPythonPackage rec { meta = { description = "Generic and extendable WebDAV server based on WSGI"; homepage = "https://wsgidav.readthedocs.io/"; - changelog = "https://github.com/mar10/wsgidav/blob/v${version}/CHANGELOG.md"; - license = with lib.licenses; [ mit ]; + changelog = "https://github.com/mar10/wsgidav/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; mainProgram = "wsgidav"; }; -} +})