From 4d4f2ba156e1086186439fbb7c7b4531c03c23d0 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 13 Jul 2022 10:05:24 +0200 Subject: [PATCH] python310Packages.antlr4_9-python3-runtime: init at 4.9 --- .../python-modules/antlr4-python3-runtime/default.nix | 10 ++++++---- pkgs/top-level/python-packages.nix | 8 ++++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix index d0e8d4fab439..1ab91cacbcc3 100644 --- a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix +++ b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix @@ -1,11 +1,13 @@ -{ lib, buildPythonPackage, isPy3k, python -, antlr4 -}: +{ lib +, buildPythonPackage +, isPy3k +, python +, antlr4 }: buildPythonPackage rec { pname = "antlr4-python3-runtime"; inherit (antlr4.runtime.cpp) version src; - disabled = !isPy3k; + disabled = python.pythonOlder "3.6"; sourceRoot = "source/runtime/Python3"; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 10ee4cadea0b..468f80eaba13 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -559,9 +559,13 @@ in { ansiwrap = callPackage ../development/python-modules/ansiwrap { }; - antlr4-python3-runtime = callPackage ../development/python-modules/antlr4-python3-runtime { - inherit (pkgs) antlr4; + antlr4_8-python3-runtime = callPackage ../development/python-modules/antlr4-python3-runtime { + antlr4 = pkgs.antlr4_8; }; + antlr4_9-python3-runtime = callPackage ../development/python-modules/antlr4-python3-runtime { + antlr4 = pkgs.antlr4_9; + }; + antlr4-python3-runtime = self.antlr4_8-python3-runtime; anyascii = callPackage ../development/python-modules/anyascii { };