Merge pull request #145098 from veprbl/pr/pyjet_python38_fix

python38Packages.pyjet: fix build
This commit is contained in:
Timothy DeHerrera 2021-11-08 15:17:52 -07:00 committed by GitHub
commit b31c4628c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, cython, pytest, numpy }: { lib, buildPythonPackage, pythonOlder, fetchFromGitHub, cython, pytest, importlib-resources, numpy }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyjet"; pname = "pyjet";
@ -13,7 +13,11 @@ buildPythonPackage rec {
}; };
nativeBuildInputs = [ cython ]; nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ numpy ]; propagatedBuildInputs = [
numpy
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
checkInputs = [ pytest ]; checkInputs = [ pytest ];
checkPhase = '' checkPhase = ''