2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
, cmake
|
2024-01-13 08:15:51 +00:00
|
|
|
, cython_3
|
2023-03-15 16:39:30 +00:00
|
|
|
, ninja
|
2023-08-22 20:05:09 +00:00
|
|
|
, oldest-supported-numpy
|
|
|
|
, scikit-build
|
|
|
|
, setuptools
|
|
|
|
, wheel
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
# propagates
|
|
|
|
, msgpack
|
|
|
|
, ndindex
|
|
|
|
, numpy
|
|
|
|
, py-cpuinfo
|
|
|
|
, rich
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, psutil
|
|
|
|
, pytestCheckHook
|
|
|
|
, torch
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blosc2";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.3.2";
|
2023-03-15 16:39:30 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Blosc";
|
|
|
|
repo = "python-blosc2";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
fetchSubmodules = true;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-tRcyntJlmLPbqnX7nzdBQ/50uXy0fVLb2YGVOIwJjxU=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements-runtime.txt \
|
|
|
|
--replace "pytest" ""
|
|
|
|
'';
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2024-01-13 08:15:51 +00:00
|
|
|
cython_3
|
2023-03-15 16:39:30 +00:00
|
|
|
ninja
|
2023-08-22 20:05:09 +00:00
|
|
|
oldest-supported-numpy
|
2023-03-15 16:39:30 +00:00
|
|
|
scikit-build
|
|
|
|
setuptools
|
2023-08-22 20:05:09 +00:00
|
|
|
wheel
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msgpack
|
|
|
|
ndindex
|
|
|
|
numpy
|
|
|
|
py-cpuinfo
|
|
|
|
rich
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
psutil
|
|
|
|
pytestCheckHook
|
|
|
|
torch
|
|
|
|
];
|
|
|
|
|
|
|
|
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}";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|