diff --git a/pkgs/development/python-modules/blosc2/default.nix b/pkgs/development/python-modules/blosc2/default.nix index 8b8108c5c41e..906127d9bb94 100644 --- a/pkgs/development/python-modules/blosc2/default.nix +++ b/pkgs/development/python-modules/blosc2/default.nix @@ -7,22 +7,19 @@ cmake, cython, ninja, - oldest-supported-numpy, pkg-config, - scikit-build, - setuptools, - wheel, + scikit-build-core, - # c library + # native dependencies c-blosc2, - # propagates + # dependencies + httpx, msgpack, ndindex, numexpr, numpy, py-cpuinfo, - rich, # tests psutil, @@ -32,46 +29,41 @@ buildPythonPackage rec { pname = "blosc2"; - version = "2.7.1"; + version = "3.0.0"; pyproject = true; src = fetchFromGitHub { owner = "Blosc"; repo = "python-blosc2"; tag = "v${version}"; - hash = "sha256-2aLfyd+/I8cy9OqdU4yNXY/bkf0AdXu+hZPLDdM3g5g="; + hash = "sha256-em03vwTPURkyZfGdlgpoy8QUzbib9SlcR73vYznlsYA="; }; - postPatch = '' - substituteInPlace requirements-runtime.txt \ - --replace "pytest" "" - ''; - pythonRelaxDeps = [ "numpy" ]; nativeBuildInputs = [ cmake - cython ninja - oldest-supported-numpy pkg-config - scikit-build - setuptools - wheel + ]; + + dontUseCmakeConfigure = true; + env.CMAKE_ARGS = lib.cmakeBool "USE_SYSTEM_BLOSC2" true; + + build-system = [ + cython + scikit-build-core ]; buildInputs = [ c-blosc2 ]; - dontUseCmakeConfigure = true; - env.CMAKE_ARGS = "-DUSE_SYSTEM_BLOSC2:BOOL=YES"; - - propagatedBuildInputs = [ + dependencies = [ + httpx msgpack ndindex numexpr numpy py-cpuinfo - rich ]; nativeCheckInputs = [ @@ -80,12 +72,20 @@ buildPythonPackage rec { torch ]; + disabledTests = [ + # RuntimeError: Error while getting the slice + "test_lazyexpr" + "test_eval_item" + # RuntimeError: Error while creating the NDArray + "test_lossy" + ]; + passthru.c-blosc2 = c-blosc2; meta = with lib; { description = "Python wrapper for the extremely fast Blosc2 compression library"; homepage = "https://github.com/Blosc/python-blosc2"; - changelog = "https://github.com/Blosc/python-blosc2/releases/tag/v${version}"; + changelog = "https://github.com/Blosc/python-blosc2/releases/tag/${src.tag}"; license = licenses.bsd3; maintainers = with maintainers; [ ris ]; };