From 2c8f32904f62ac2a101963182a6673a4fa04dd47 Mon Sep 17 00:00:00 2001 From: Anton Mosich Date: Tue, 29 Apr 2025 00:09:15 +0200 Subject: [PATCH] python3Packages.ingredient-parser-nlp: 2.0.0 -> 2.1.0 See https://github.com/strangetom/ingredient-parser/releases/tag/2.1.0 for a changelog. Notable is the replacement of floret with numpy as a dependency. --- .../ingredient-parser-nlp/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/ingredient-parser-nlp/default.nix b/pkgs/development/python-modules/ingredient-parser-nlp/default.nix index 0250a17c0212..88d03d362361 100644 --- a/pkgs/development/python-modules/ingredient-parser-nlp/default.nix +++ b/pkgs/development/python-modules/ingredient-parser-nlp/default.nix @@ -2,37 +2,36 @@ lib, buildPythonPackage, fetchFromGitHub, - nix-update-script, setuptools, nltk, - python-crfsuite, + numpy, pint, - floret, + python-crfsuite, pytestCheckHook, nltk-data, }: buildPythonPackage rec { pname = "ingredient-parser-nlp"; - version = "2.0.0"; + version = "2.1.0"; pyproject = true; src = fetchFromGitHub { owner = "strangetom"; repo = "ingredient-parser"; tag = version; - hash = "sha256-i14RKBcvU56pDNGxNVBvvpQ65FCbitMIfvN5eLLJCWU="; + hash = "sha256-VGHN1zgT6gaIrUN6JMgdCSHu652H0D6LCWI6deX12bs="; }; build-system = [ setuptools ]; dependencies = [ nltk - python-crfsuite + numpy pint - floret + python-crfsuite ]; nativeCheckInputs = [ @@ -52,7 +51,7 @@ buildPythonPackage rec { description = "Parse structured information from recipe ingredient sentences"; license = lib.licenses.mit; homepage = "https://github.com/strangetom/ingredient-parser/"; - changelog = "https://github.com/strangetom/ingredient-parser/releases/tag/${version}"; + changelog = "https://github.com/strangetom/ingredient-parser/releases/tag/${src.tag}"; maintainers = with lib.maintainers; [ antonmosich ]; }; }