summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2021-10-01 15:53:50 +0200
committerGitHub <noreply@github.com>2021-10-01 15:53:50 +0200
commitf775e81fca582de7dae6231513fff827da37f7e7 (patch)
treeb4679abcec9b6f92dd72c91a894ed7d26c84bb1b
parent5b9f60f9bb159113bfd8a0c8f3f4a8a0c2f55d7e (diff)
downloadspack-f775e81fca582de7dae6231513fff827da37f7e7.tar.gz
spack-f775e81fca582de7dae6231513fff827da37f7e7.tar.bz2
spack-f775e81fca582de7dae6231513fff827da37f7e7.tar.xz
spack-f775e81fca582de7dae6231513fff827da37f7e7.zip
py-fury: add new package (#26404)
-rw-r--r--var/spack/repos/builtin/packages/py-fury/package.py39
1 files changed, 39 insertions, 0 deletions
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')