python3Packages.blosc2: 2.7.1 -> 3.0.0

https://github.com/Blosc/python-blosc2/releases/tag/v3.0.0
This commit is contained in:
Martin Weinelt
2025-01-27 10:54:50 +01:00
parent b49218c58a
commit ac8d823f5c
@@ -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 ];
};