depot/third_party/nixpkgs/pkgs/development/python-modules/blosc2/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

75 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
, scikit-build
, cython
, cmake
, ninja
# 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
numpy
scikit-build
setuptools
];
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; [ ];
};
}