From 8f5b5baed7eb09aa84e09bffb33a437e90186ba7 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Sun, 23 Feb 2020 10:09:24 +0100 Subject: [PATCH] poetry: Fix build with Python 3.8 --- pkgs/development/tools/poetry/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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)