about summary refs log tree commit diff
path: root/pkgs/by-name/ws
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2024-03-31 11:28:30 +0200
committerGitHub <noreply@github.com>2024-03-31 11:28:30 +0200
commitca6e137af405235f0c2118a9a60f4187e9bff8b6 (patch)
tree655fc45e8a07376e075dc20eca1ce0d9b0b92891 /pkgs/by-name/ws
parent1b797b7b159045b787e6b5c41f369a60cf3fcb3b (diff)
parentd7bbe5fc9aa59c00df70d1327f1b559792c2e1af (diff)
Merge pull request #300320 from fabaff/wsrepl
wsrepl: init at 0.2.0
Diffstat (limited to 'pkgs/by-name/ws')
-rw-r--r--pkgs/by-name/ws/wsrepl/package.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/by-name/ws/wsrepl/package.nix b/pkgs/by-name/ws/wsrepl/package.nix
new file mode 100644
index 0000000000000..9bab0957d5b3a
--- /dev/null
+++ b/pkgs/by-name/ws/wsrepl/package.nix
@@ -0,0 +1,53 @@
+{ lib
+, fetchFromGitHub
+, python3
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "wsrepl";
+  version = "0.2.0";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "doyensec";
+    repo = "wsrepl";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-Y96p39TjpErGsR5vFS0NxEF/2Tnr2Zk7ULDgNXaXx9o=";
+  };
+
+  pythonRelaxDeps = [
+    "textual"
+  ];
+
+  nativeBuildInputs = with python3.pkgs; [
+    pythonRelaxDepsHook
+  ];
+
+  build-system = with python3.pkgs; [
+    poetry-core
+  ];
+
+  dependencies = with python3.pkgs; [
+    pygments
+    pyperclip
+    rich
+    textual
+    websocket-client
+  ];
+
+  # Project has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "wsrepl"
+  ];
+
+  meta = with lib; {
+    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 ];
+    mainProgram = "wsrepl";
+  };
+}