summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Heeren <erik.heeren@epfl.ch>2023-01-30 20:07:15 +0100
committerGitHub <noreply@github.com>2023-01-30 13:07:15 -0600
commitde2aaeb26fe7fd68302540f0f4bd29f0f6f6740c (patch)
tree5f3ed8f512c319ae23330353b7448332ea597003
parent830e3211e597894401c0fa275877fafa7e965785 (diff)
downloadspack-de2aaeb26fe7fd68302540f0f4bd29f0f6f6740c.tar.gz
spack-de2aaeb26fe7fd68302540f0f4bd29f0f6f6740c.tar.bz2
spack-de2aaeb26fe7fd68302540f0f4bd29f0f6f6740c.tar.xz
spack-de2aaeb26fe7fd68302540f0f4bd29f0f6f6740c.zip
py-mariadb: new package (#35240)
* py-mariadb: new package * py-mariadb: style
-rw-r--r--var/spack/repos/builtin/packages/py-mariadb/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-mariadb/package.py b/var/spack/repos/builtin/packages/py-mariadb/package.py
new file mode 100644
index 0000000000..6f630e42d9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-mariadb/package.py
@@ -0,0 +1,26 @@
+# 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 PyMariadb(PythonPackage):
+ """A module for connecting to mariaDB databases"""
+
+ homepage = "https://github.com/mariadb-corporation/mariadb-connector-python"
+ pypi = "mariadb/mariadb-1.1.5.post3.tar.gz"
+
+ version(
+ "1.1.5.post3",
+ sha256="f9336dd4cb3207e621933bb5221f33fac0d7184db64dc44c70531430f4ecdcee",
+ )
+ version(
+ "1.0.10",
+ sha256="79028ba6051173dad1ad0be7518389cab70239f92b4ff8b8813dae55c3f2c53d",
+ url="https://www.pypi.org/packages/source/m/mariadb/mariadb-1.0.10.zip",
+ )
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-packaging", type=("build", "run"))
+ depends_on("mariadb-c-client", type=("build", "run"))