1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 setuptools,
6 ply,
7}:
8
9buildPythonPackage rec {
10 pname = "webidl";
11 version = "0-unstable-2025-06-15";
12 pyproject = true;
13
14 src = fetchFromGitLab {
15 owner = "verso-browser";
16 repo = "verso";
17 rev = "ace264e0e73da37bfb14818d92f0e54946ce9871";
18 hash = "sha256-gjg7qs2ik1cJcE6OTGN4KdljqJDGokCo4JdR+KopMJw=";
19 };
20
21 # python library is vendored inside another repo
22 # and unfortunately not exposed in another repo
23 # or Pypi.
24 sourceRoot = "${src.name}/third_party/WebIDL";
25
26 build-system = [ setuptools ];
27
28 dependencies = [ ply ];
29
30 pythonImportsCheck = [
31 "WebIDL"
32 ];
33
34 # no pytests exist
35 doCheck = false;
36
37 meta = {
38 description = "WebIDL parser written in Python";
39 homepage = "https://gitlab.com/verso-browser/verso";
40 license = lib.licenses.mpl20;
41 maintainers = with lib.maintainers; [ ethancedwards8 ];
42 };
43
44}