From 92e86d0f2135c616de67be2ac887bad63d64dd95 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 24 Jul 2026 11:28:03 +0700 Subject: [PATCH] python3Packages.udatetime: modernize --- pkgs/development/python-modules/udatetime/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/udatetime/default.nix b/pkgs/development/python-modules/udatetime/default.nix index fb4388ac9302..f49df8e4750e 100644 --- a/pkgs/development/python-modules/udatetime/default.nix +++ b/pkgs/development/python-modules/udatetime/default.nix @@ -5,13 +5,16 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "udatetime"; version = "0.0.17"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + pname = "udatetime"; + inherit (finalAttrs) version; hash = "sha256-sQvFVwaZpDinLitaZOdr2MKO4779FvIJOHpVB/oLgwE="; }; @@ -29,4 +32,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = [ ]; }; -} +})