diff --git a/var/spack/repos/builtin/packages/py-lightly-utils/package.py b/var/spack/repos/builtin/packages/py-lightly-utils/package.py new file mode 100644 index 0000000000..9762e3a2dc --- /dev/null +++ b/var/spack/repos/builtin/packages/py-lightly-utils/package.py @@ -0,0 +1,19 @@ +# 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) + +from spack.package import * + + +class PyLightlyUtils(PythonPackage): + """A utility package for lightly.""" + + homepage = "https://www.lightly.ai/" + pypi = "lightly_utils/lightly_utils-0.0.2.tar.gz" + + version("0.0.2", sha256="a351f3d600f0ab08d12f294725c6457ae000645cb0a1083d0845cb196ccfe698") + + depends_on("py-setuptools", type="build") + depends_on("py-numpy", type=("build", "run")) + depends_on("pil", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-lightly/package.py b/var/spack/repos/builtin/packages/py-lightly/package.py new file mode 100644 index 0000000000..370e41205f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-lightly/package.py @@ -0,0 +1,31 @@ +# 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) + +from spack.package import * + + +class PyLightly(PythonPackage): + """A deep learning package for self-supervised learning.""" + + homepage = "https://www.lightly.ai/" + # https://github.com/lightly-ai/lightly/issues/1146 + url = "https://github.com/lightly-ai/lightly/archive/refs/tags/v1.4.1.tar.gz" + + maintainers("adamjstewart") + + version("1.4.1", sha256="4c64657639c66ee5c8b4b8d300fc9b5287dc7e14a260f3a2e04917dca7f57f5b") + + depends_on("py-certifi@14.05.14:", type=("build", "run")) + depends_on("py-hydra-core@1:", type=("build", "run")) + depends_on("py-lightly-utils@0.0", type=("build", "run")) + depends_on("py-numpy@1.18.1:", type=("build", "run")) + depends_on("py-python-dateutil@2.5.3:", type=("build", "run")) + depends_on("py-requests@2.23:", type=("build", "run")) + depends_on("py-setuptools@21:65.5.1", type=("build", "run")) + depends_on("py-six@1.10:", type=("build", "run")) + depends_on("py-torchvision", type=("build", "run")) + depends_on("py-tqdm@4.44:", type=("build", "run")) + depends_on("py-urllib3@1.15.1:", type=("build", "run")) + depends_on("py-pytorch-lightning@1.0.4:", type=("build", "run"))