From 9b138c9a008f3b6ce63105b4f034450744a7bb83 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 24 Jul 2026 04:12:13 +0700 Subject: [PATCH 1/2] python3Packages.torpy: migrate to pyproject --- pkgs/development/python-modules/torpy/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/torpy/default.nix b/pkgs/development/python-modules/torpy/default.nix index 57bdff800e93..f09428189f12 100644 --- a/pkgs/development/python-modules/torpy/default.nix +++ b/pkgs/development/python-modules/torpy/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, cryptography, pytestCheckHook, requests, @@ -10,7 +11,7 @@ buildPythonPackage rec { pname = "torpy"; version = "1.1.6"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "torpyorg"; @@ -19,7 +20,9 @@ buildPythonPackage rec { hash = "sha256-Ni7GcpkxzAMtP4wBOFsi4KnxK+nC0XCZR/2Z/eS/C+w="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ cryptography requests ]; From a1467249a2e4eae262dcbf6805bf83b8afa5f955 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 24 Jul 2026 04:18:35 +0700 Subject: [PATCH 2/2] 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 ]; }; -} +})