2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cython,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
mkl,
|
2024-07-27 06:49:29 +00:00
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mkl-service";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "2.4.2";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IntelPython";
|
|
|
|
repo = "mkl-service";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-o5mjZhqQc7tu44EjrScuGzv6pZNlnZnndMIAhl8pY5o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
cython
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
env.MKLROOT = mkl;
|
|
|
|
|
|
|
|
dependencies = [ mkl ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mkl" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
cd $out
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
disabledTests = [
|
|
|
|
# require SIMD compilation
|
|
|
|
"test_cbwr_all"
|
|
|
|
"test_cbwr_branch"
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python hooks for Intel(R) Math Kernel Library runtime control settings";
|
|
|
|
homepage = "https://github.com/IntelPython/mkl-service";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bhipple ];
|
|
|
|
};
|
|
|
|
}
|