summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2019-08-29 13:49:50 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2019-08-29 13:49:50 -0700
commit1f56c1e647266235346f7d7e70980b3e81f5e2e5 (patch)
tree382a3894b250ac4a1a109feeae9d85a8505ef330
parent292baab069526212fd766c464eca53e1887d0d82 (diff)
downloadspack-1f56c1e647266235346f7d7e70980b3e81f5e2e5.tar.gz
spack-1f56c1e647266235346f7d7e70980b3e81f5e2e5.tar.bz2
spack-1f56c1e647266235346f7d7e70980b3e81f5e2e5.tar.xz
spack-1f56c1e647266235346f7d7e70980b3e81f5e2e5.zip
New package: py-mysqlclient (#12594)
-rw-r--r--var/spack/repos/builtin/packages/py-mysqlclient/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-mysqlclient/package.py b/var/spack/repos/builtin/packages/py-mysqlclient/package.py
new file mode 100644
index 0000000000..779a34eef5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-mysqlclient/package.py
@@ -0,0 +1,23 @@
+# Copyright 2013-2019 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 import *
+
+
+class PyMysqlclient(PythonPackage):
+ """Python interface to MySQL"""
+
+ # Note: _mysql module can be imported via "from MySQLdb import _mysql"
+ # The documentation is misleading about this.
+
+ homepage = "https://github.com/PyMySQL/mysqlclient-python"
+ url = "https://pypi.io/packages/source/m/mysqlclient/mysqlclient-1.4.4.tar.gz"
+
+ version('1.4.4', sha256='9c737cc55a5dc8dd3583a942d5a9b21be58d16f00f5fefca4e575e7d9682e98c')
+ version('1.3.13', sha256='ff8ee1be84215e6c30a746b728c41eb0701a46ca76e343af445b35ce6250644f')
+
+ depends_on('py-setuptools', type='build')
+ # Below: cxxstd=17 also works
+ depends_on('mysql cxxstd=14')