spack/var/spack/repos/builtin/packages/py-mysql-connector-python/package.py
2025-01-02 15:40:28 +01:00

27 lines
980 B
Python

# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyMysqlConnectorPython(PythonPackage):
"""MySQL Connector/Python is implementing the MySQL Client/Server
protocol completely in Python. No MySQL libraries are needed, and
no compilation is necessary to run this Python DB API v2.0
compliant driver."""
homepage = "https://github.com/mysql/mysql-connector-python"
url = "https://github.com/mysql/mysql-connector-python/archive/8.0.13.tar.gz"
git = "https://github.com/mysql/mysql-connector-python.git"
license("Artistic-1.0-Perl")
version("8.0.13", sha256="d4c0834c583cdb90c0aeae90b1917d58355a4bf9b0266c16fd58874a5607f9d4")
depends_on("c", type="build") # generated
depends_on("cxx", type="build") # generated
depends_on("py-setuptools", type=("build", "run"))
depends_on("py-protobuf@3.0.0:", type=("build", "run"))