From e5513f914eef912c1891a97f3332bf213893e1bc Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Tue, 1 Jun 2021 01:10:29 +0200 Subject: [PATCH] py-prov: add new package (#24040) --- .../repos/builtin/packages/py-prov/package.py | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-prov/package.py diff --git a/var/spack/repos/builtin/packages/py-prov/package.py b/var/spack/repos/builtin/packages/py-prov/package.py new file mode 100644 index 0000000000..983a2b0b21 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-prov/package.py @@ -0,0 +1,31 @@ +# 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 PyProv(PythonPackage): + """A Python library for W3C Provenance Data Model (PROV). + + A library for W3C Provenance Data Model supporting PROV-JSON, PROV-XML and + PROV-O (RDF) + """ + + homepage = "prov.readthedocs.io/" + pypi = "prov/prov-2.0.0.tar.gz" + + version('2.0.0', sha256='b6438f2195ecb9f6e8279b58971e02bc51814599b5d5383366eef91d867422ee') + + variant('dot', default=False, description='Graphical visualisation support for prov.model') + + depends_on('python@3.6:3.999', type=('build', 'run')) + depends_on('py-setuptools', type='build') + + depends_on('py-lxml@3.3.5:', type=('build', 'run')) + depends_on('py-networkx@2.0:', type=('build', 'run')) + depends_on('py-python-dateutil@2.2:', type=('build', 'run')) + depends_on('py-rdflib@4.2.1:', type=('build', 'run')) + depends_on('py-pydot@1.2.0:', when='+dot', type=('build', 'run')) + depends_on('graphviz', when='+dot', type=('build', 'run'))