From 9f90ef1f5cb8c2a5d43c9c6467f180e249bf5be6 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 22 Apr 2025 14:46:03 +0200 Subject: [PATCH] wsrepl: cleanup, fix --- pkgs/by-name/ws/wsrepl/package.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ws/wsrepl/package.nix b/pkgs/by-name/ws/wsrepl/package.nix index 7ceb84628f59..3c4c12988942 100644 --- a/pkgs/by-name/ws/wsrepl/package.nix +++ b/pkgs/by-name/ws/wsrepl/package.nix @@ -1,10 +1,11 @@ { lib, + python3Packages, fetchFromGitHub, - python3, + nix-update-script, }: -python3.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "wsrepl"; version = "0.2.0"; pyproject = true; @@ -17,14 +18,15 @@ python3.pkgs.buildPythonApplication rec { }; pythonRelaxDeps = [ + "rich" "textual" ]; - build-system = with python3.pkgs; [ + build-system = with python3Packages; [ poetry-core ]; - dependencies = with python3.pkgs; [ + dependencies = with python3Packages; [ pygments pyperclip rich @@ -39,12 +41,16 @@ python3.pkgs.buildPythonApplication rec { "wsrepl" ]; - meta = with lib; { + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { description = "WebSocket REPL"; homepage = "https://github.com/doyensec/wsrepl"; changelog = "https://github.com/doyensec/wsrepl/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ fab ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; mainProgram = "wsrepl"; }; }