Commit f6736fe5 authored by Robert Schütz's avatar Robert Schütz
Browse files
parent c630f973
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
{
  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
  ];