Skip to content
Snippets Groups Projects

feat: Add py-sbi and py-vbi packages

Closed Abolfazl Ziaeemehr requested to merge (removed):add_vbi into master
Files
3
+ 48
0
# Copyright 2013-2024 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)
# ----------------------------------------------------------------------------
# If you submit this package back to Spack as a pull request,
# please first remove this boilerplate and all FIXME comments.
#
# This is a template package file for Spack. We've put "FIXME"
# next to all the things you'll want to change. Once you've handled
# them, you can save this file and test your package like this:
#
# spack install py-sbi
#
# You can edit this file again by typing:
#
# spack edit py-sbi
#
# See the Spack documentation for more information on packaging.
# ----------------------------------------------------------------------------
from spack.package import *
class PySbi(PythonPackage):
url = "https://github.com/sbi-dev/sbi/archive/refs/tags/v0.23.1.tar.gz"
version("0.23.1", sha256="effd8fbfa5fd76a489fea9f4acc4c3c2dba5c3bb396a2213a8aae51e6232ed9a")
maintainers = ['ziaee'] # sbi-dev package from https://github.com/sbi-dev/sbi
depends_on('python@3.11:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-scipy', type=('build', 'run'))
depends_on('py-torch', type=('build', 'run'))
depends_on('py-matplotlib', type=('build', 'run'))
depends_on('py-pyro-ppl', type=('build', 'run'))
depends_on('py-pyro-api', type=('build', 'run'))
depends_on('py-typing-extensions', type=('build', 'run'))
def config_settings(self, spec, prefix):
# FIXME: Add configuration settings to be passed to the build backend
# FIXME: If not needed, delete this function
settings = {}
return settings