From f6736fe5220e1fa51c6546dfb09f3d0c34413a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 20 Oct 2025 10:21:21 -0700 Subject: [PATCH] python3Packages.type-infer: 0.0.23 -> 0.0.25 Diff: https://github.com/mindsdb/type_infer/compare/v0.0.23...v0.0.25 Changelog: https://github.com/mindsdb/type_infer/releases/tag/v0.0.25 --- .../python-modules/type-infer/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/type-infer/default.nix b/pkgs/development/python-modules/type-infer/default.nix index 5bc50ccf9e45..a59301e884ec 100644 --- a/pkgs/development/python-modules/type-infer/default.nix +++ b/pkgs/development/python-modules/type-infer/default.nix @@ -1,9 +1,8 @@ { lib, buildPythonPackage, - pythonOlder, - pythonAtLeast, fetchFromGitHub, + fetchpatch, poetry-core, colorlog, dataclasses-json, @@ -14,6 +13,8 @@ py3langid, pytestCheckHook, python-dateutil, + standard-imghdr, + standard-sndhdr, scipy, toml, }: @@ -24,7 +25,7 @@ let d.stopwords ]); - version = "0.0.23"; + version = "0.0.25"; tag = "v${version}"; in buildPythonPackage { @@ -32,15 +33,21 @@ buildPythonPackage { inherit version; pyproject = true; - disabled = pythonOlder "3.8" || pythonAtLeast "3.13"; - src = fetchFromGitHub { owner = "mindsdb"; repo = "type_infer"; inherit tag; - hash = "sha256-tqT/MTcSHcKGoPUUzjPLFpOTchannFsCd2VMC+8kVZ8="; + hash = "sha256-WL/2WSy3e2Mg/jNS8afUEnCt10wpXho4uOPAkVdzHWA="; }; + patches = [ + # https://github.com/mindsdb/type_infer/pull/83 + (fetchpatch { + url = "https://github.com/mindsdb/type_infer/commit/d09f88d5ddbe55125b1fff4506b03165d019d88b.patch"; + hash = "sha256-wNBzb+RxoZC8zn5gdOrtJeXJIIH3DTt1gTZfgN/WnQQ="; + }) + ]; + pythonRelaxDeps = [ "psutil" "py3langid" @@ -59,6 +66,8 @@ buildPythonPackage { py3langid python-dateutil scipy + standard-imghdr + standard-sndhdr toml ];