python3Packages.xgrammar: 0.1.23 -> 0.1.24 (#441270)

Changed files
+8 -8
pkgs
development
python-modules
xgrammar
+8 -8
pkgs/development/python-modules/xgrammar/default.nix
···
scikit-build-core,
# dependencies
+
mlx-lm,
pydantic,
sentencepiece,
tiktoken,
···
buildPythonPackage rec {
pname = "xgrammar";
-
version = "0.1.23";
+
version = "0.1.24";
pyproject = true;
src = fetchFromGitHub {
···
repo = "xgrammar";
tag = "v${version}";
fetchSubmodules = true;
-
hash = "sha256-asyxJsrsbfFNh1pLBDzM4kdmunQp7/mTDw3L8KuZf4g=";
+
hash = "sha256-K+GCHuWKF449JaGWr7FQrDeJS3pxmVKnGf68L53LrK0=";
};
patches = [
···
]
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) [
triton
+
]
+
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
+
mlx-lm
];
nativeCheckInputs = [
···
writableTmpDirAsHomeHook
];
-
NIX_CFLAGS_COMPILE = toString [
+
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isLinux (toString [
# xgrammar hardcodes -flto=auto while using static linking, which can cause linker errors without this additional flag.
"-ffat-lto-objects"
-
];
+
]);
disabledTests = [
# You are trying to access a gated repo.
···
badPlatforms = [
# error: ‘operator delete’ called on unallocated object ‘result’ [-Werror=free-nonheap-object]
"aarch64-linux"
-
-
# clang++: error: unsupported option '-ffat-lto-objects' for target 'arm64-apple-darwin'
-
# idem for 'x86_64-apple-darwin'
-
lib.systems.inspect.patterns.isDarwin
];
};
}