From f8f995f568977642003fbce3a70f6646ab1acb5d Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sat, 6 Jun 2026 16:29:21 -0400 Subject: [PATCH] rshell: modernize Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/rs/rshell/package.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/rs/rshell/package.nix b/pkgs/by-name/rs/rshell/package.nix index 6386de38ef9a..64b0d1122eda 100644 --- a/pkgs/by-name/rs/rshell/package.nix +++ b/pkgs/by-name/rs/rshell/package.nix @@ -2,27 +2,37 @@ lib, python3Packages, fetchPypi, + versionCheckHook, }: python3Packages.buildPythonApplication (finalAttrs: { pname = "rshell"; version = "0.0.36"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-SmbYNSB0eVUOWdDdPoMAPQTE7KeKTkklD4h+0t1LC/U="; }; + build-system = [ + python3Packages.setuptools + ]; + dependencies = with python3Packages; [ pyserial pyudev ]; + nativeCheckInputs = [ versionCheckHook ]; + meta = { homepage = "https://github.com/dhylands/rshell"; description = "Remote Shell for MicroPython"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ c0deaddict ]; + mainProgram = "rshell"; }; })