python3Packages.stringzilla: 4.2.1 -> 4.2.2 (#456141)

This commit is contained in:
dotlambda
2025-10-27 17:34:21 +00:00
committed by GitHub
@@ -6,31 +6,20 @@
pytest-repeat,
pytestCheckHook,
setuptools,
stdenv,
}:
buildPythonPackage rec {
pname = "stringzilla";
version = "4.2.1";
version = "4.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "ashvardanian";
repo = "stringzilla";
tag = "v${version}";
hash = "sha256-0CIekVxChvH912vFnBF2FR1YyIpxi3SD7KhBlh7yFGA=";
hash = "sha256-J1k8gYPStnnXHFvbHG6nHuQMQy1+XSiS5ERk/reL/Z4=";
};
# Define _POSIX_C_SOURCE to enable POSIX signal handling for ARM capability detection
# See: https://github.com/ashvardanian/StringZilla/pull/263
env.NIX_CFLAGS_COMPILE = "-D_POSIX_C_SOURCE=200809L";
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
# error: unsupported option '-mfloat-abi=' for target 'aarch64-apple-darwin'
substituteInPlace setup.py \
--replace-fail '"-mfloat-abi=hard",' ""
'';
build-system = [
setuptools
];