Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 92 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ lib, buildPythonPackage, fetchFromGitHub,
# build-system poetry-core,
# dependencies boltons, gensim, gitpython, greek-accentuation, nltk, pyyaml, rapidfuzz, requests, scikit-learn, scipy, spacy, stanza, stringcase, torch, tqdm,
# tests pytestCheckHook,}:buildPythonPackage rec { pname = "cltk"; version = "1.3.0";
pyproject = true;
src = fetchFromGitHub { owner = "cltk"; repo = "cltk"; rev = "refs/tags/v${version}"; hash = "sha256-/rdv96lnSGN+aJJmPSIan79zoXxnStokFEAjBtCLKy4="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "poetry>=1.1.13" poetry-core \ --replace-fail "poetry.masonry.api" "poetry.core.masonry.api" \ --replace-fail 'scipy = "<1.13.0"' 'scipy = "^1"' \ --replace-fail 'boltons = "^21.0.0"' 'boltons = "^24.0.0"' '';
build-system = [ poetry-core ];
pythonRelaxDeps = [ "spacy" ];
dependencies = [ boltons gensim gitpython greek-accentuation nltk pyyaml rapidfuzz requests scikit-learn scipy spacy stanza stringcase torch tqdm ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = '' export HOME=$(mktemp -d) '';
# Most of tests fail as they require local files to be present and also internet access doCheck = false;
meta = { description = "Natural language processing (NLP) framework for pre-modern languages"; homepage = "https://cltk.org"; changelog = "https://github.com/cltk/cltk/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ kmein ]; };}