Skip to content

Commit

Permalink
fixup! python3Packages.blosc2: 2.7.1 -> 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jan 24, 2025
1 parent 41bab14 commit e2c93e0
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions pkgs/development/python-modules/blosc2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -42,36 +39,31 @@ buildPythonPackage rec {
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
];

buildInputs = [ c-blosc2 ];

dontUseCmakeConfigure = true;
env.CMAKE_ARGS = "-DUSE_SYSTEM_BLOSC2:BOOL=YES";
env.CMAKE_ARGS = lib.cmakeBool "USE_SYSTEM_BLOSC2" true;

propagatedBuildInputs = [
build-system = [
cython
scikit-build-core
];

buildInputs = [ c-blosc2 ];

dependencies = [
httpx
msgpack
ndindex
numexpr
numpy
py-cpuinfo
rich
];

nativeCheckInputs = [
Expand All @@ -80,6 +72,14 @@ 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; {
Expand Down

0 comments on commit e2c93e0

Please sign in to comment.