Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 87 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system cmake, cython, ninja, pkg-config, scikit-build-core,
# native dependencies c-blosc2,
# dependencies msgpack, ndindex, numexpr, numpy, platformdirs, py-cpuinfo, requests,
# tests psutil, pytestCheckHook, torch, runTorchTests ? lib.meta.availableOn stdenv.hostPlatform torch,}:
buildPythonPackage rec { pname = "blosc2"; version = "3.6.1"; pyproject = true;
src = fetchFromGitHub { owner = "Blosc"; repo = "python-blosc2"; tag = "v${version}"; hash = "sha256-MSGuG9Vqniz6gie0je84XNTHLZaZho9tmqELMKoDh/U="; };
nativeBuildInputs = [ cmake ninja pkg-config ];
dontUseCmakeConfigure = true; env.CMAKE_ARGS = lib.cmakeBool "USE_SYSTEM_BLOSC2" true;
build-system = [ cython numpy scikit-build-core ];
buildInputs = [ c-blosc2 ];
dependencies = [ msgpack ndindex numexpr numpy platformdirs py-cpuinfo requests ];
nativeCheckInputs = [ psutil pytestCheckHook ] ++ lib.optionals runTorchTests [ torch ];
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/${src.tag}"; license = licenses.bsd3; maintainers = with maintainers; [ ris ]; };}