From 81e9e47337d43c16d06131ff03236d8578db52bc Mon Sep 17 00:00:00 2001 From: haralmha <47558670+haralmha@users.noreply.github.com> Date: Thu, 31 Mar 2022 16:56:18 +0200 Subject: [PATCH] py-marshmallow: Add new package (#29764) * py-marshmallow: Add new package * Modify py-packaging dependency type Co-authored-by: Adam J. Stewart * Add run dependency to py-packaging Co-authored-by: Adam J. Stewart Co-authored-by: Adam J. Stewart --- .../packages/py-marshmallow/package.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-marshmallow/package.py diff --git a/var/spack/repos/builtin/packages/py-marshmallow/package.py b/var/spack/repos/builtin/packages/py-marshmallow/package.py new file mode 100644 index 0000000000..c22d01f4d7 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-marshmallow/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2022 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 PyMarshmallow(PythonPackage): + """marshmallow is an ORM/ODM/framework-agnostic library for converting + complex datatypes, such as objects, to and from native Python datatypes.""" + + homepage = "https://github.com/marshmallow-code/marshmallow" + pypi = "marshmallow/marshmallow-3.15.0.tar.gz" + + maintainers = ['haralmha'] + + version('3.15.0', sha256='2aaaab4f01ef4f5a011a21319af9fce17ab13bf28a026d1252adab0e035648d5') + + depends_on('python@3.7:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-packaging', type=('build', 'run'))