From 5d588b0368e986e93c4ab08085202bde2b540829 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 25 Jan 2024 21:42:41 +0100 Subject: [PATCH] python311Packages.blosc2: 2.3.2 -> 2.5.1 Diff: https://github.com/Blosc/python-blosc2/compare/refs/tags/v2.3.2...v2.5.1 Changelog: https://github.com/Blosc/python-blosc2/releases/tag/v2.5.1 --- .../python-modules/blosc2/default.nix | 37 +++++++------------ 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/blosc2/default.nix b/pkgs/development/python-modules/blosc2/default.nix index 1bc55fbdcf0a6..4c1eb9c00a46a 100644 --- a/pkgs/development/python-modules/blosc2/default.nix +++ b/pkgs/development/python-modules/blosc2/default.nix @@ -1,47 +1,35 @@ { lib , buildPythonPackage -, fetchFromGitHub - -# build-system , cmake , cython_3 -, ninja -, oldest-supported-numpy -, scikit-build -, setuptools -, wheel - -# propagates +, fetchFromGitHub , msgpack , ndindex +, ninja , numpy -, py-cpuinfo -, rich - -# tests +, oldest-supported-numpy , psutil +, py-cpuinfo , pytestCheckHook +, scikit-build +, setuptools , torch +, wheel }: buildPythonPackage rec { pname = "blosc2"; - version = "2.3.2"; - format = "pyproject"; + version = "2.5.1"; + pyproject = true; src = fetchFromGitHub { owner = "Blosc"; repo = "python-blosc2"; rev = "refs/tags/v${version}"; fetchSubmodules = true; - hash = "sha256-tRcyntJlmLPbqnX7nzdBQ/50uXy0fVLb2YGVOIwJjxU="; + hash = "sha256-72TBZ0EXMz8BeKJxjnG44//ICgdvoZG9gYC4gdq3+nA="; }; - postPatch = '' - substituteInPlace requirements-runtime.txt \ - --replace "pytest" "" - ''; - nativeBuildInputs = [ cmake cython_3 @@ -59,7 +47,6 @@ buildPythonPackage rec { ndindex numpy py-cpuinfo - rich ]; nativeCheckInputs = [ @@ -68,6 +55,10 @@ buildPythonPackage rec { torch ]; + pythonImportsCheck = [ + "blosc2" + ]; + meta = with lib; { description = "Python wrapper for the extremely fast Blosc2 compression library"; homepage = "https://github.com/Blosc/python-blosc2";