From a1467249a2e4eae262dcbf6805bf83b8afa5f955 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 24 Jul 2026 04:18:35 +0700 Subject: [PATCH] python3Packages.torpy: modernize --- pkgs/development/python-modules/torpy/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/torpy/default.nix b/pkgs/development/python-modules/torpy/default.nix index f09428189f12..5030ac3a826b 100644 --- a/pkgs/development/python-modules/torpy/default.nix +++ b/pkgs/development/python-modules/torpy/default.nix @@ -8,15 +8,17 @@ requests, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "torpy"; version = "1.1.6"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "torpyorg"; repo = "torpy"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Ni7GcpkxzAMtP4wBOFsi4KnxK+nC0XCZR/2Z/eS/C+w="; }; @@ -42,4 +44,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ larsr ]; }; -} +})