c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
78 lines
1.3 KiB
Nix
78 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# build-system
|
|
, cmake
|
|
, cython
|
|
, ninja
|
|
, oldest-supported-numpy
|
|
, scikit-build
|
|
, setuptools
|
|
, wheel
|
|
|
|
# propagates
|
|
, msgpack
|
|
, ndindex
|
|
, numpy
|
|
, py-cpuinfo
|
|
, rich
|
|
|
|
# tests
|
|
, psutil
|
|
, pytestCheckHook
|
|
, torch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "blosc2";
|
|
version = "2.1.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Blosc";
|
|
repo = "python-blosc2";
|
|
rev = "refs/tags/v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-nbPMLkTye0/Q05ubE35LssN677sUIQErPTxjAtSuGgI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace requirements-runtime.txt \
|
|
--replace "pytest" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
cython
|
|
ninja
|
|
oldest-supported-numpy
|
|
scikit-build
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
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; [ ];
|
|
};
|
|
}
|