Ethan Carter Edwards 03c351dbfb
python3Packages.webidl: init at 0-unstable-2025-06-15
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2025-06-27 11:50:40 -04:00

45 lines
912 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
setuptools,
ply,
}:
buildPythonPackage rec {
pname = "webidl";
version = "0-unstable-2025-06-15";
pyproject = true;
src = fetchFromGitLab {
owner = "verso-browser";
repo = "verso";
rev = "ace264e0e73da37bfb14818d92f0e54946ce9871";
hash = "sha256-gjg7qs2ik1cJcE6OTGN4KdljqJDGokCo4JdR+KopMJw=";
};
# python library is vendored inside another repo
# and unfortunately not exposed in another repo
# or Pypi.
sourceRoot = "${src.name}/third_party/WebIDL";
build-system = [ setuptools ];
dependencies = [ ply ];
pythonImportsCheck = [
"WebIDL"
];
# no pytests exist
doCheck = false;
meta = {
description = "WebIDL parser written in Python";
homepage = "https://gitlab.com/verso-browser/verso";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
}