forked from mirrors/nixpkgs
python310Packages.numba: update disable
This commit is contained in:
parent
8278f5c3b0
commit
2e32938d54
|
@ -24,11 +24,11 @@ let
|
|||
in buildPythonPackage rec {
|
||||
version = "0.55.1";
|
||||
pname = "numba";
|
||||
disabled = pythonOlder "3.6" || pythonAtLeast "3.10";
|
||||
disabled = pythonOlder "3.6" || pythonAtLeast "3.11";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-A+kGmiZm0chPk7ANvXFvuP7d6Lssbvr6LwSEKkZELqM=";
|
||||
hash = "sha256-A+kGmiZm0chPk7ANvXFvuP7d6Lssbvr6LwSEKkZELqM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -42,9 +42,18 @@ in buildPythonPackage rec {
|
|||
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
|
||||
|
||||
propagatedBuildInputs = [ numpy llvmlite setuptools ] ++ lib.optionals cudaSupport [ cudatoolkit cudatoolkit.lib ];
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
llvmlite
|
||||
setuptools
|
||||
] ++ lib.optionals cudaSupport [
|
||||
cudatoolkit
|
||||
cudatoolkit.lib
|
||||
];
|
||||
|
||||
nativeBuildInputs = lib.optional cudaSupport [ addOpenGLRunpath ];
|
||||
nativeBuildInputs = lib.optional cudaSupport [
|
||||
addOpenGLRunpath
|
||||
];
|
||||
|
||||
patches = lib.optionals cudaSupport [
|
||||
(substituteAll {
|
||||
|
@ -69,12 +78,14 @@ in buildPythonPackage rec {
|
|||
# ImportError: cannot import name '_typeconv'
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "numba" ];
|
||||
pythonImportsCheck = [
|
||||
"numba"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Compiling Python code using LLVM";
|
||||
homepage = "https://numba.pydata.org/";
|
||||
license = licenses.bsd2;
|
||||
description = "Compiling Python code using LLVM";
|
||||
maintainers = with maintainers; [ fridh ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue