diff --git a/pkgs/development/python-modules/gliner/default.nix b/pkgs/development/python-modules/gliner/default.nix index 30173893c70e..1c1423429ca2 100644 --- a/pkgs/development/python-modules/gliner/default.nix +++ b/pkgs/development/python-modules/gliner/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -17,14 +18,15 @@ buildPythonPackage (finalAttrs: { pname = "gliner"; - version = "0.2.26"; + version = "0.2.27"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "urchade"; repo = "GLiNER"; tag = "v${finalAttrs.version}"; - hash = "sha256-tiQrb04SfloVJySyKu5XhOaE8Y3RcwBbW2l13UtZL0w="; + hash = "sha256-pM2JenMxBvCiDQyj9VFMYJGRckWJWna3gCdAlhBGR1U="; }; build-system = [ @@ -43,7 +45,15 @@ buildPythonPackage (finalAttrs: { transformers ]; - pythonImportsCheck = [ "gliner" ]; + # aarch64-linux fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox: + # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' + # + # -> Skip the import check + pythonImportsCheck = + lib.optionals (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)) + [ + "gliner" + ]; # All tests require internet doCheck = false; @@ -57,7 +67,7 @@ buildPythonPackage (finalAttrs: { badPlatforms = [ # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' # Attempt to use DefaultLogger but none has been registered. - "aarch64-linux" + # "aarch64-linux" ]; }; })