Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, fetchFromGitHub,
setuptools,
nltk, numpy, pint,
pytestCheckHook, nltk-data,}:buildPythonPackage rec { pname = "ingredient-parser-nlp"; version = "2.8.0"; pyproject = true;
src = fetchFromGitHub { owner = "strangetom"; repo = "ingredient-parser"; tag = version; hash = "sha256-oIHuk3xU65kewoTdxdnaTFL0uJt2bDOyXn+nT7Jc60c="; };
build-system = [ setuptools ];
dependencies = [ nltk numpy pint ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ingredient_parser" ];
# Needed for tests preCheck = '' export NLTK_DATA=${nltk-data.averaged-perceptron-tagger-eng} '';
meta = { 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/${src.tag}"; maintainers = with lib.maintainers; [ antonmosich ]; };}