From c630f97390d65bcf25e61347f08ad9f1017352de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 20 Oct 2025 10:32:22 -0700 Subject: [PATCH 1/3] python3Packages.standard-sndhdr: init at 3.13.0 --- .../standard-sndhdr/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 6 +++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/standard-sndhdr/default.nix diff --git a/pkgs/development/python-modules/standard-sndhdr/default.nix b/pkgs/development/python-modules/standard-sndhdr/default.nix new file mode 100644 index 000000000000..6fefd2146c00 --- /dev/null +++ b/pkgs/development/python-modules/standard-sndhdr/default.nix @@ -0,0 +1,42 @@ +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pytestCheckHook, + setuptools, + standard-aifc, +}: + +buildPythonPackage rec { + pname = "standard-sndhdr"; + version = "3.13.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "youknowone"; + repo = "python-deadlib"; + tag = "v${version}"; + hash = "sha256-vhGFTd1yXL4Frqli5D1GwOatwByDjvcP8sxgkdu6Jqg="; + }; + + sourceRoot = "${src.name}/sndhdr"; + + build-system = [ setuptools ]; + + dependencies = [ + standard-aifc + ]; + + pythonImportsCheck = [ "sndhdr" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "Standard library sndhdr redistribution"; + homepage = "https://github.com/youknowone/python-deadlib/tree/main/sndhdr"; + license = lib.licenses.psfl; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fb31006dc940..1f3d5e5a277d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17652,6 +17652,12 @@ self: super: with self; { standard-pipes = if pythonAtLeast "3.13" then callPackage ../development/python-modules/standard-pipes { } else null; + standard-sndhdr = + if pythonAtLeast "3.13" then + callPackage ../development/python-modules/standard-sndhdr { } + else + null; + standard-sunau = if pythonAtLeast "3.13" then callPackage ../development/python-modules/standard-sunau { } else null; 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 2/3] 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 ]; From 4c1c308aacb82fe90aece6f4bdde26c5e4aac0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 20 Oct 2025 10:33:35 -0700 Subject: [PATCH 3/3] python3Packages.mindsdb-evaluator: 0.0.18 -> 0.0.20 Diff: https://github.com/mindsdb/mindsdb_evaluator/compare/v0.0.18...v0.0.20 Changelog: https://github.com/mindsdb/mindsdb_evaluator/releases/tag/v0.0.19 https://github.com/mindsdb/mindsdb_evaluator/releases/tag/v0.0.20 --- .../mindsdb-evaluator/default.nix | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/mindsdb-evaluator/default.nix b/pkgs/development/python-modules/mindsdb-evaluator/default.nix index 2f7b18a34653..e9c11be20c46 100644 --- a/pkgs/development/python-modules/mindsdb-evaluator/default.nix +++ b/pkgs/development/python-modules/mindsdb-evaluator/default.nix @@ -1,34 +1,34 @@ { lib, buildPythonPackage, - fetchPypi, - pythonOlder, + fetchFromGitHub, poetry-core, dataprep-ml, numpy, pandas, scikit-learn, type-infer, + pytestCheckHook, }: buildPythonPackage rec { pname = "mindsdb-evaluator"; - version = "0.0.18"; + version = "0.0.20"; pyproject = true; - disabled = pythonOlder "3.8"; - - # using PyPI as git repository does not have release tags or branches - src = fetchPypi { - pname = "mindsdb_evaluator"; - inherit version; - hash = "sha256-UGg7P/OKmRi70z2roRBsA95FAXm7CG+TdPzTRy7+p4w="; + src = fetchFromGitHub { + owner = "mindsdb"; + repo = "mindsdb_evaluator"; + tag = "v${version}"; + hash = "sha256-ZeJABMbyRdGrZGkWWXcjleOeDQBSicGR06hZAPUKvgI="; }; build-system = [ poetry-core ]; pythonRelaxDeps = [ + "dataprep-ml" "numpy" + "scikit-learn" ]; dependencies = [ @@ -41,10 +41,15 @@ buildPythonPackage rec { pythonImportsCheck = [ "mindsdb_evaluator" ]; - meta = with lib; { + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + changelog = "https://github.com/mindsdb/mindsdb_evaluator/releases/tag/${src.tag}"; description = "Model evaluation for Machine Learning pipelines"; - homepage = "https://pypi.org/project/mindsdb-evaluator/"; - license = licenses.gpl3Only; - maintainers = with maintainers; [ mbalatsko ]; + homepage = "https://github.com/mindsdb/mindsdb_evaluator"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ mbalatsko ]; }; }