From 2a81f2be866559a4d1888c5de45b7ed35d39b54b Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 5 Jul 2024 14:05:52 +0900 Subject: [PATCH] python311Packages.mkl-service: refactor and remove nose --- .../python-modules/mkl-service/default.nix | 34 +++++++++++++------ 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/mkl-service/default.nix b/pkgs/development/python-modules/mkl-service/default.nix index 9a2cd468db2ac1d..fd5e8e992775829 100644 --- a/pkgs/development/python-modules/mkl-service/default.nix +++ b/pkgs/development/python-modules/mkl-service/default.nix @@ -3,30 +3,44 @@ buildPythonPackage, fetchFromGitHub, cython, + setuptools, mkl, - nose, - six, + pytestCheckHook, }: buildPythonPackage rec { pname = "mkl-service"; version = "2.4.1"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "IntelPython"; repo = "mkl-service"; rev = "refs/tags/v${version}"; - sha256 = "sha256-4UPiQt1hVVlPFZnuKlMK3FLv2cIEXToHKxnyYLXR/sY="; + hash = "sha256-4UPiQt1hVVlPFZnuKlMK3FLv2cIEXToHKxnyYLXR/sY="; }; - MKLROOT = mkl; + build-system = [ + cython + setuptools + ]; + + env.MKLROOT = mkl; + + dependencies = [ mkl ]; + + pythonImportsCheck = [ "mkl" ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + preCheck = '' + cd $out + ''; - nativeCheckInputs = [ nose ]; - nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ - mkl - six + disabledTests = [ + # require SIMD compilation + "test_cbwr_all" + "test_cbwr_branch" ]; meta = with lib; {