diff options
author | Jen Herting <jen@herting.cc> | 2023-10-08 11:18:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 10:18:01 -0500 |
commit | 2eb16a8ea2944652a3a29b27f78c826eead1a5c8 (patch) | |
tree | e92229ee18d49d3c0397fa15c95028baa76d8961 /var | |
parent | 9db782f8d9417b947ed7f782a9e668c55ac6d7de (diff) | |
download | spack-2eb16a8ea2944652a3a29b27f78c826eead1a5c8.tar.gz spack-2eb16a8ea2944652a3a29b27f78c826eead1a5c8.tar.bz2 spack-2eb16a8ea2944652a3a29b27f78c826eead1a5c8.tar.xz spack-2eb16a8ea2944652a3a29b27f78c826eead1a5c8.zip |
[py-lvis] New package (#39080)
* [py-lvis] New package
* [py-lvis] flake8
* [py-lvis] os agnostic
* [py-lvis] added comment for imported dependency
* [py-lvis] style fix
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-lvis/package.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-lvis/package.py b/var/spack/repos/builtin/packages/py-lvis/package.py new file mode 100644 index 0000000000..4824f487d5 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-lvis/package.py @@ -0,0 +1,36 @@ +# Copyright 2013-2023 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) + +import os + +from spack.package import * + + +class PyLvis(PythonPackage): + """Python API for LVIS dataset.""" + + pypi = "lvis/lvis-0.5.3.tar.gz" + + version("0.5.3", sha256="55aeeb84174abea2ed0d6985a8e93aa9bdbb60c61c6db130c8269a275ef61a6e") + + depends_on("py-setuptools", type="build") + depends_on("py-cycler@0.10:", type=("build", "run")) + depends_on("py-cython@0.29.12:", type=("build", "run")) + depends_on("py-kiwisolver@1.1:", type=("build", "run")) + depends_on("py-matplotlib@3.1.1:", type=("build", "run")) + depends_on("py-numpy@1.18.2:", type=("build", "run")) + depends_on("opencv@4.1.0.25:+python3", type=("build", "run")) + depends_on("py-pyparsing@2.4.0:", type=("build", "run")) + depends_on("py-python-dateutil@2.8:", type=("build", "run")) + depends_on("py-six@1.12:", type=("build", "run")) + + # imported at lvis/lvis.py:15 + depends_on("py-pycocotools", type=("build", "run")) + + def patch(self): + os.rename( + join_path(self.stage.source_path, "lvis.egg-info", "requires.txt"), + join_path(self.stage.source_path, "requirements.txt"), + ) |