From 4de824fa95308e331f404c955bef6089abb89225 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 3 Jul 2026 04:03:16 +0700 Subject: [PATCH] python3Packages.simple-di: modernize --- pkgs/development/python-modules/simple-di/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/simple-di/default.nix b/pkgs/development/python-modules/simple-di/default.nix index a185c8f71499..0b74fbd785c2 100644 --- a/pkgs/development/python-modules/simple-di/default.nix +++ b/pkgs/development/python-modules/simple-di/default.nix @@ -6,14 +6,16 @@ typing-extensions, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "simple-di"; version = "0.1.5"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { pname = "simple_di"; - inherit version; + inherit (finalAttrs) version; hash = "sha256-GSuZne5M1PsRpdhhFlyq0C2PBhfA+Ab8Wwn5BfGgPKA="; }; @@ -35,4 +37,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ sauyon ]; }; -} +})