From e4e7ba179c447708120b4295007568296c6c23a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 13 Oct 2021 16:26:33 -0700 Subject: [PATCH] python3Packages.pluggy: only require importlib-metadata for Python < 3.8 --- pkgs/development/python-modules/pluggy/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pluggy/default.nix b/pkgs/development/python-modules/pluggy/default.nix index 1a1c23f22d0a..8d1fcbed3a7f 100644 --- a/pkgs/development/python-modules/pluggy/default.nix +++ b/pkgs/development/python-modules/pluggy/default.nix @@ -2,6 +2,7 @@ , lib , fetchPypi , setuptools-scm +, pythonOlder , importlib-metadata }: @@ -23,12 +24,14 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ importlib-metadata ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ + importlib-metadata + ]; meta = { description = "Plugin and hook calling mechanisms for Python"; homepage = "https://github.com/pytest-dev/pluggy"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ ]; + maintainers = with lib.maintainers; [ dotlambda ]; }; }