diff options
author | adisbladis <adisbladis@gmail.com> | 2020-02-23 16:55:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-23 16:55:58 +0100 |
commit | 5c500875665785b27539557520364582be8ffe0e (patch) | |
tree | dfe6216031ea4e617a6049030c9800efc7d237ca | |
parent | 4441a6a8a43972556603a9de751e1c77bba64ae6 (diff) | |
parent | 8f5b5baed7eb09aa84e09bffb33a437e90186ba7 (diff) |
Merge pull request #80880 from Infinisil/poetry-python-3.8
poetry: Fix build with Python 3.8
-rw-r--r-- | pkgs/development/tools/poetry/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/tools/poetry/default.nix b/pkgs/development/tools/poetry/default.nix index 1517e53f219c..5035677beb00 100644 --- a/pkgs/development/tools/poetry/default.nix +++ b/pkgs/development/tools/poetry/default.nix @@ -8,6 +8,12 @@ poetry2nix.mkPoetryApplication { pyproject = ./pyproject.toml; poetrylock = ./poetry.lock; + overrides = [ (poetry2nix.defaultPoetryOverrides.overrideOverlay (self: super: { + # Needed because poetry2nix currently doesn't handle pyproject.toml python bounds + # See https://github.com/nix-community/poetry2nix/issues/50 + importlib-metadata = if python.pythonOlder "3.8" then super.importlib-metadata else null; + }))]; + src = fetchFromGitHub (lib.importJSON ./src.json); # "Vendor" dependencies (for build-system support) |