summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ws/wsrepl/package.nix
blob: 419cac0fdf78f21632eb920d5c1a9d9e5d11ef26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  lib,
  python3Packages,
  fetchFromGitHub,
  nix-update-script,
}:

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "wsrepl";
  version = "0.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "doyensec";
    repo = "wsrepl";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Y96p39TjpErGsR5vFS0NxEF/2Tnr2Zk7ULDgNXaXx9o=";
  };

  pythonRelaxDeps = [
    "rich"
    "textual"
  ];

  build-system = with python3Packages; [
    poetry-core
  ];

  dependencies = with python3Packages; [
    pygments
    pyperclip
    rich
    textual
    websocket-client
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [
    "wsrepl"
  ];

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "WebSocket REPL";
    homepage = "https://github.com/doyensec/wsrepl";
    changelog = "https://github.com/doyensec/wsrepl/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "wsrepl";
  };
})