From 7b86aa479cad81015048cbe4ce80d4b295ffdc09 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 01:39:03 +0700 Subject: [PATCH] python3Packages.baycomp: modernize --- pkgs/development/python-modules/baycomp/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/baycomp/default.nix b/pkgs/development/python-modules/baycomp/default.nix index 2a58159d533a..fbe42cafd63e 100644 --- a/pkgs/development/python-modules/baycomp/default.nix +++ b/pkgs/development/python-modules/baycomp/default.nix @@ -9,13 +9,15 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "baycomp"; version = "1.0.3"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-MrJa17FtWyUd259hEKMtezlTuYcJbaHSXvJ3k10l2uw="; }; @@ -36,4 +38,4 @@ buildPythonPackage rec { license = [ lib.licenses.mit ]; maintainers = [ lib.maintainers.lucasew ]; }; -} +})