diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-12-26 18:38:21 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-12-28 12:20:56 +0100 |
commit | fd2a0bdd6bd430c57fd1bb6dc489cb218e043142 (patch) | |
tree | 914340cac249919e808edb5c8bdea22e7d1cb577 | |
parent | 503c4c1b68703ece131a8738a5d5e5610b62503a (diff) | |
download | nixpkgs-fd2a0bdd6bd430c57fd1bb6dc489cb218e043142.tar nixpkgs-fd2a0bdd6bd430c57fd1bb6dc489cb218e043142.tar.gz nixpkgs-fd2a0bdd6bd430c57fd1bb6dc489cb218e043142.tar.bz2 nixpkgs-fd2a0bdd6bd430c57fd1bb6dc489cb218e043142.tar.lz nixpkgs-fd2a0bdd6bd430c57fd1bb6dc489cb218e043142.tar.xz nixpkgs-fd2a0bdd6bd430c57fd1bb6dc489cb218e043142.tar.zst nixpkgs-fd2a0bdd6bd430c57fd1bb6dc489cb218e043142.zip |
python3Packages.antlr4-python-runtime: remove versioned variants
The python package set cannot support multiple versions of a package, since they would collide when different versions would be used at the same time. This can too easily happen through transitive propagation, which is why we don't support it.
-rw-r--r-- | pkgs/development/python-modules/hydra/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/python-modules/omegaconf/default.nix | 4 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 8 |
3 files changed, 6 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/hydra/default.nix b/pkgs/development/python-modules/hydra/default.nix index cbd2502305b..f858e39cfda 100644 --- a/pkgs/development/python-modules/hydra/default.nix +++ b/pkgs/development/python-modules/hydra/default.nix @@ -1,6 +1,6 @@ { stdenv , lib -, antlr4_9-python3-runtime +, antlr4-python3-runtime , buildPythonPackage , fetchFromGitHub , importlib-resources @@ -29,7 +29,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - antlr4_9-python3-runtime + antlr4-python3-runtime omegaconf ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources diff --git a/pkgs/development/python-modules/omegaconf/default.nix b/pkgs/development/python-modules/omegaconf/default.nix index 5aa772310bd..82524a627f6 100644 --- a/pkgs/development/python-modules/omegaconf/default.nix +++ b/pkgs/development/python-modules/omegaconf/default.nix @@ -1,5 +1,5 @@ { lib -, antlr4_9-python3-runtime +, antlr4-python3-runtime , buildPythonPackage , fetchFromGitHub , jre_minimal @@ -29,7 +29,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - antlr4_9-python3-runtime + antlr4-python3-runtime pyyaml ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0526970704a..5f80001e94f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -488,13 +488,9 @@ self: super: with self; { ansiwrap = callPackage ../development/python-modules/ansiwrap { }; - antlr4_8-python3-runtime = callPackage ../development/python-modules/antlr4-python3-runtime { - antlr4 = pkgs.antlr4_8; + antlr4-python3-runtime = callPackage ../development/python-modules/antlr4-python3-runtime { + inherit (pkgs) antlr4; }; - 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 { }; |