27 lines
911 B
Python
27 lines
911 B
Python
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class PyTiktoken(PythonPackage):
|
|
"""tiktoken is a fast BPE tokeniser for use with OpenAI's models."""
|
|
|
|
homepage = "https://github.com/openai/tiktoken"
|
|
pypi = "tiktoken/tiktoken-0.4.0.tar.gz"
|
|
|
|
maintainers("meyersbs")
|
|
|
|
version("0.4.0", sha256="59b20a819969735b48161ced9b92f05dc4519c17be4015cfb73b65270a243620")
|
|
|
|
# From pyproject.toml
|
|
depends_on("py-setuptools@62.4:", type="build")
|
|
depends_on("py-setuptools-rust@1.5.2:", type="build")
|
|
depends_on("py-wheel", type="build")
|
|
depends_on("python@3.8:", type=("build", "run"))
|
|
depends_on("py-regex@2022.1.18:", type=("build", "run"))
|
|
depends_on("py-requests@2.26.0:", type=("build", "run"))
|