[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
This commit is contained in:
parent
9db782f8d9
commit
2eb16a8ea2
1 changed files with 36 additions and 0 deletions
36
var/spack/repos/builtin/packages/py-lvis/package.py
Normal file
36
var/spack/repos/builtin/packages/py-lvis/package.py
Normal file
|
@ -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"),
|
||||||
|
)
|
Loading…
Reference in a new issue