From 74d277c8cd0241d44684a3187d51713c148ebf97 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 8 Nov 2021 14:14:28 -0500 Subject: [PATCH] python38Packages.pyjet: fix build --- pkgs/development/python-modules/pyjet/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyjet/default.nix b/pkgs/development/python-modules/pyjet/default.nix index 90eea80ae3d9..608bacf06765 100644 --- a/pkgs/development/python-modules/pyjet/default.nix +++ b/pkgs/development/python-modules/pyjet/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchFromGitHub, cython, pytest, numpy }: +{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, cython, pytest, importlib-resources, numpy }: buildPythonPackage rec { pname = "pyjet"; @@ -13,7 +13,11 @@ buildPythonPackage rec { }; nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ numpy ]; + propagatedBuildInputs = [ + numpy + ] ++ lib.optionals (pythonOlder "3.9") [ + importlib-resources + ]; checkInputs = [ pytest ]; checkPhase = ''