From 3cb9085385a69499a4ede7fb951bd8f2c20f2a60 Mon Sep 17 00:00:00 2001 From: Harinn Date: Mon, 15 Jun 2026 22:03:20 +0700 Subject: [PATCH] python3Packages.yamlordereddictloader: modernize --- .../python-modules/yamlordereddictloader/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/yamlordereddictloader/default.nix b/pkgs/development/python-modules/yamlordereddictloader/default.nix index 89faa3680c16..c2158ff92a70 100644 --- a/pkgs/development/python-modules/yamlordereddictloader/default.nix +++ b/pkgs/development/python-modules/yamlordereddictloader/default.nix @@ -6,13 +6,15 @@ pyyaml, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "yamlordereddictloader"; version = "0.4.2"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-Nq8vYhD8/12k/EwS4dgV+XPc60EETnleHwYRXWNLyhM="; }; @@ -31,4 +33,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = [ ]; }; -} +})