1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cython, 6 setuptools, 7 mkl, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "mkl-service"; 13 version = "2.5.2"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "IntelPython"; 18 repo = "mkl-service"; 19 tag = "v${version}"; 20 hash = "sha256-uP4TzBLhlpT83FIYCjolP3QN5/90YjBOnauy780gUJc="; 21 }; 22 23 build-system = [ 24 cython 25 setuptools 26 ]; 27 28 env.MKLROOT = mkl; 29 30 dependencies = [ mkl ]; 31 32 pythonImportsCheck = [ "mkl" ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 preCheck = '' 37 cd $out 38 ''; 39 40 disabledTests = [ 41 # require SIMD compilation 42 "test_cbwr_all" 43 "test_cbwr_branch" 44 ]; 45 46 meta = with lib; { 47 description = "Python hooks for Intel(R) Math Kernel Library runtime control settings"; 48 homepage = "https://github.com/IntelPython/mkl-service"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ bhipple ]; 51 }; 52}