depot/third_party/nixpkgs/pkgs/development/python-modules/mkl-service/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

52 lines
955 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
setuptools,
mkl,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mkl-service";
version = "2.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "IntelPython";
repo = "mkl-service";
rev = "refs/tags/v${version}";
hash = "sha256-4UPiQt1hVVlPFZnuKlMK3FLv2cIEXToHKxnyYLXR/sY=";
};
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 = 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 ];
};
}