default.nix (706B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 }: 6 7 python3Packages.buildPythonPackage { 8 pname = "revtok"; 9 version = "2018-09-21"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "jekbradbury"; 14 repo = "revtok"; 15 rev = "f1998b72a941d1e5f9578a66dc1c20b01913caab"; 16 hash = "sha256-o416UUnTMejCd57fGvZPSFQv0bT4PULdgNTXyAzMiMs="; 17 }; 18 19 build-system = with python3Packages; [ setuptools ]; 20 21 dependencies = with python3Packages; [ tqdm ]; 22 23 pythonImportsCheck = [ "revtok" ]; 24 25 meta = { 26 description = "Reversible tokenization in Python"; 27 homepage = "https://github.com/jekbradbury/revtok"; 28 license = lib.licenses.mit; 29 maintainers = [ lib.maintainers.sikmir ]; 30 }; 31 }