commit 4bc9a61d9172c69d95da8ea543c44ff6b7c1b1c5
parent ce9f7092b38b28057faa008966735db1d6edd816
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 2 Aug 2026 13:39:34 +0400
Drop pytorchtext, revtok
Diffstat:
2 files changed, 0 insertions(+), 98 deletions(-)
diff --git a/pkgs/by-name/py/pytorchtext/package.nix b/pkgs/by-name/py/pytorchtext/package.nix
@@ -1,67 +0,0 @@
-{
- lib,
- stdenv,
- fetchFromGitHub,
- python3Packages,
- cmake,
- ninja,
- which,
- revtok,
-}:
-
-python3Packages.buildPythonPackage (finalAttrs: {
- pname = "pytorchtext";
- version = "0.18.0";
- pyproject = true;
-
- src = fetchFromGitHub {
- owner = "pytorch";
- repo = "text";
- tag = "v${finalAttrs.version}";
- hash = "sha256-ok91rw/76ivtTTd3DkdDG7N2aZE5WqPuZE4YbbQ0pYU=";
- fetchSubmodules = true;
- };
-
- postPatch = ''
- substituteInPlace setup.py --replace-fail "subprocess.check_call" "pass #"
- '';
-
- build-system = with python3Packages; [ setuptools ];
-
- nativeBuildInputs = [
- cmake
- ninja
- which
- ];
-
- buildInputs = with python3Packages; [ pybind11 ];
-
- dependencies = with python3Packages; [
- defusedxml
- nltk
- pytorch
- requests
- revtok
- sacremoses
- spacy
- tqdm
- ];
-
- nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
-
- dontUseCmakeConfigure = true;
-
- doCheck = false;
-
- env.NIX_CFLAGS_COMPILE = "-Wno-error=enum-constexpr-conversion";
-
- pythonImportsCheck = [ "torchtext" ];
-
- meta = {
- description = "Text utilities and datasets for PyTorch";
- homepage = "https://github.com/pytorch/text";
- license = lib.licenses.bsd3;
- maintainers = [ lib.maintainers.sikmir ];
- broken = true; # error: implicit instantiation of undefined template 'std::char_traits'
- };
-})
diff --git a/pkgs/by-name/re/revtok/package.nix b/pkgs/by-name/re/revtok/package.nix
@@ -1,31 +0,0 @@
-{
- lib,
- fetchFromGitHub,
- python3Packages,
-}:
-
-python3Packages.buildPythonPackage {
- pname = "revtok";
- version = "2018-09-21";
- pyproject = true;
-
- src = fetchFromGitHub {
- owner = "jekbradbury";
- repo = "revtok";
- rev = "f1998b72a941d1e5f9578a66dc1c20b01913caab";
- hash = "sha256-o416UUnTMejCd57fGvZPSFQv0bT4PULdgNTXyAzMiMs=";
- };
-
- build-system = with python3Packages; [ setuptools ];
-
- dependencies = with python3Packages; [ tqdm ];
-
- pythonImportsCheck = [ "revtok" ];
-
- meta = {
- description = "Reversible tokenization in Python";
- homepage = "https://github.com/jekbradbury/revtok";
- license = lib.licenses.mit;
- maintainers = [ lib.maintainers.sikmir ];
- };
-}