Unverified Commit 83c45b91 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.cltk: 1.3.0 -> 1.5.0 (#404302)

parents 23866ef1 ba2df560
Loading
Loading
Loading
Loading
+5 −10
Original line number Diff line number Diff line
@@ -19,24 +19,23 @@
  scipy,
  spacy,
  stanza,
  stringcase,
  torch,
  tqdm,

  # tests
  pytestCheckHook,
  writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
  pname = "cltk";
  version = "1.3.0";

  version = "1.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "cltk";
    repo = "cltk";
    rev = "refs/tags/v${version}";
    hash = "sha256-/rdv96lnSGN+aJJmPSIan79zoXxnStokFEAjBtCLKy4=";
    tag = "v${version}";
    hash = "sha256-aeWbfDVNn6DwW+KFh62n5RBgWp5uSWDv2RHmB27/xI4=";
  };

  postPatch = ''
@@ -66,19 +65,15 @@ buildPythonPackage rec {
    scipy
    spacy
    stanza
    stringcase
    torch
    tqdm
  ];

  nativeCheckInputs = [
    pytestCheckHook
    writableTmpDirAsHomeHook
  ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  # Most of tests fail as they require local files to be present and also internet access
  doCheck = false;