Files
nixpkgs/pkgs/development/python-modules/mkl-service/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
890 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
setuptools,
mkl,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mkl-service";
version = "2.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "IntelPython";
repo = "mkl-service";
tag = "v${version}";
hash = "sha256-uP4TzBLhlpT83FIYCjolP3QN5/90YjBOnauy780gUJc=";
};
build-system = [
cython
setuptools
];
env.MKLROOT = mkl;
dependencies = [ mkl ];
pythonImportsCheck = [ "mkl" ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
cd $out
'';
disabledTests = [
# require SIMD compilation
"test_cbwr_all"
"test_cbwr_branch"
];
meta = {
description = "Python hooks for Intel(R) Math Kernel Library runtime control settings";
homepage = "https://github.com/IntelPython/mkl-service";
license = lib.licenses.bsd3;
};
}