python38Packages.pyjet: fix build

This commit is contained in:
Dmitry Kalinkin
2021-11-08 16:25:33 -05:00
parent 3119a60230
commit 74d277c8cd
@@ -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 = ''