generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
browser-debugger-tools.nix
44 lines (37 loc) · 1.04 KB
/
browser-debugger-tools.nix
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
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "browser-debugger-tools";
version = "6.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "scivisum";
repo = "browser-debugger-tools";
rev = version;
hash = "sha256-kEDj18m5WfQs02vy6VcYFiKo7mw0IsP9NjKdaseIszQ=";
};
# https://github.com/scivisum/browser-debugger-tools/blob/master/setup.py
# fix: typing not installed
# https://github.com/scivisum/browser-debugger-tools/issues/46
postPatch = ''
sed -i '/"typing"/d' setup.py
'';
nativeBuildInputs = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
propagatedBuildInputs = with python3.pkgs; [
requests
websocket-client
];
pythonImportsCheck = [ "browserdebuggertools" ];
meta = with lib; {
description = "A python client for the devtools protocol";
homepage = "https://github.com/scivisum/browser-debugger-tools";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
mainProgram = "browser-debugger-tools";
};
}