From f775e81fca582de7dae6231513fff827da37f7e7 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Fri, 1 Oct 2021 15:53:50 +0200 Subject: py-fury: add new package (#26404) --- .../repos/builtin/packages/py-fury/package.py | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-fury/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-fury/package.py b/var/spack/repos/builtin/packages/py-fury/package.py new file mode 100644 index 0000000000..abe791ac6c --- /dev/null +++ b/var/spack/repos/builtin/packages/py-fury/package.py @@ -0,0 +1,39 @@ +# 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 PyFury(PythonPackage): + """Free Unified Rendering in Python.""" + + homepage = "https://github.com/fury-gl/fury" + pypi = "fury/fury-0.7.1.tar.gz" + + version('0.7.1', sha256='bc7bdbdf1632f317f40c717c2f34a6b8424ce5abda3ebda31a058c0b725a316a') + + depends_on('python@2.7:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-numpy@1.7.1:', type=('build', 'run')) + depends_on('py-scipy@1.2:', type=('build', 'run')) # from requirements/default.txt + depends_on('vtk+python@8.1.2:8.99,9.0.1:', type=('build', 'run')) + depends_on('pil@5.4.1:', type=('build', 'run')) + + depends_on('py-codecov', type='test') + depends_on('py-coverage', type='test') + depends_on('py-flake8', type='test') + depends_on('py-pytest', type='test') + + @run_after('install') + @on_package_attributes(run_tests=True) + def install_test(self): + with working_dir('spack-test', create=True): + pytest = which('pytest') + pytest(join_path(self.prefix, site_packages_dir, 'fury'), + # 'Some warning' is not propagated to __warningregistry__ so + # that the test fails, disable it for now + # running all tests manually after the package is installed + # works + '-k', 'not test_clear_and_catch_warnings') -- cgit v1.2.3-60-g2f50