From ba2df560ffc83238e9019b3c6b8592fd33799a72 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 5 May 2025 09:46:10 +0200 Subject: [PATCH] python312Packages.cltk: 1.3.0 -> 1.5.0 Diff: https://github.com/cltk/cltk/compare/refs/tags/v1.3.0...refs/tags/v1.5.0 Changelog: https://github.com/cltk/cltk/releases/tag/v1.5.0 --- pkgs/development/python-modules/cltk/default.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/cltk/default.nix b/pkgs/development/python-modules/cltk/default.nix index 7635ace28648..c1eda9c2af6a 100644 --- a/pkgs/development/python-modules/cltk/default.nix +++ b/pkgs/development/python-modules/cltk/default.nix @@ -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;