From df4de3d07fb19cbdc0d8f29757a545a8358280b9 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sun, 26 Oct 2025 13:10:44 -0700 Subject: [PATCH] python3Packages.antlr4-python3-runtime: cleanup derivation Remove \`with lib;`\" and outdated \`pythonOlder\`, use modern build. --- .../antlr4-python3-runtime/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix index 3419557f3cad..80da163424a1 100644 --- a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix +++ b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix @@ -10,13 +10,11 @@ buildPythonPackage rec { pname = "antlr4-python3-runtime"; inherit (antlr4.runtime.cpp) version src; - format = "pyproject"; - - disabled = python.pythonOlder "3.6"; + pyproject = true; sourceRoot = "${src.name}/runtime/Python3"; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; postPatch = '' substituteInPlace tests/TestIntervalSet.py \ @@ -36,11 +34,11 @@ buildPythonPackage rec { runHook postCheck ''; - meta = with lib; { + meta = { description = "Runtime for ANTLR"; mainProgram = "pygrun"; homepage = "https://www.antlr.org/"; - license = licenses.bsd3; - maintainers = with maintainers; [ sarahec ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ sarahec ]; }; }