Unverified Commit 6b87da85 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #324729 from natsukium/mkl-service

python311Packages.mkl-service: refactor and remove nose
parents cb4ceede 2a81f2be
Loading
Loading
Loading
Loading
+24 −10
Original line number Diff line number Diff line
@@ -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; {