summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-08-20 06:31:58 -0500
committerGitHub <noreply@github.com>2021-08-20 13:31:58 +0200
commit6ce0d934cfe8b9e93a833ff1d31915ffd14c643d (patch)
tree8e56738fb11dbda7924c4fd0b709b3899b32c574
parentec720dd148f5621676e6be92102bf3bcd610a2d6 (diff)
downloadspack-6ce0d934cfe8b9e93a833ff1d31915ffd14c643d.tar.gz
spack-6ce0d934cfe8b9e93a833ff1d31915ffd14c643d.tar.bz2
spack-6ce0d934cfe8b9e93a833ff1d31915ffd14c643d.tar.xz
spack-6ce0d934cfe8b9e93a833ff1d31915ffd14c643d.zip
py-pydantic: add new package (#25526)
-rw-r--r--var/spack/repos/builtin/packages/py-pydantic/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pydantic/package.py b/var/spack/repos/builtin/packages/py-pydantic/package.py
new file mode 100644
index 0000000000..4334e4a90e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pydantic/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2021 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 PyPydantic(PythonPackage):
+ """Data validation and settings management using Python type hinting."""
+
+ homepage = "https://github.com/samuelcolvin/pydantic"
+ pypi = "pydantic/pydantic-1.8.2.tar.gz"
+
+ version('1.8.2', sha256='26464e57ccaafe72b7ad156fdaa4e9b9ef051f69e175dbbb463283000c05ab7b')
+
+ depends_on('python@3.6.1:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-dataclasses@0.6:', when='^python@:3.6', type=('build', 'run'))
+ depends_on('py-typing-extensions@3.7.4.3:', type=('build', 'run'))