py-pystan: Add new package (#29772)

* py-pystan: Add new package

* Fix dependencies

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Add run dependency to py-setuptools

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Add py-httpstan@4.7.2 and py-pysimdjson@3.2.0

* Dependency

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
haralmha 2022-04-22 16:56:07 +02:00 committed by GitHub
parent 84bb8e316d
commit 960b48b613
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 3 deletions

View file

@ -14,14 +14,17 @@ class PyHttpstan(PythonPackage):
maintainers = ['haralmha']
version('4.7.2', sha256='94f6631d969cbd91d136194b074d02642d8c9e2a05674877a39059be87c5bf7b')
version('4.6.1', sha256='703e5e04e60651e0004574bb9695827d759fd13eb0d6bd67f827c1bfa0a1fd31')
depends_on('python@3.7:3', type=('build', 'run'))
depends_on('python@3.8:3', type=('build', 'run'), when='@4.7:')
depends_on('python@3.7:3', type=('build', 'run'), when='@:4.6')
depends_on('py-setuptools@41.0:', type=('build', 'run'))
depends_on('py-poetry-core@1.0.0:', type='build')
depends_on('py-aiohttp@3.7:3', type=('build', 'run'))
depends_on('py-appdirs@1.4:1', type=('build', 'run'))
depends_on('py-webargs@8.0:8', type=('build', 'run'))
depends_on('py-marshmallow@3.10:3', type=('build', 'run'))
depends_on('py-numpy@1.16:1', type=('build', 'run'))
depends_on('py-numpy@1.19:1', type=('build', 'run'), when='@4.7:')
depends_on('py-numpy@1.16:1', type=('build', 'run'), when='@:4.6')
depends_on('py-pybind11')

View file

@ -17,6 +17,9 @@ class PyPysimdjson(PythonPackage):
maintainers = ['haralmha']
version('4.0.3', sha256='61900992d7f992b073a8c5f93cafa4af9bfd3209624baa775699b0fdd6f67517')
version('3.2.0', sha256='643baa0941752367761dbc091bf552bf4ca196cf67bf41ef89c90c2db2ec1477')
depends_on('python@3.6:', type=('build', 'run'))
depends_on('python@3.6:', type=('build', 'run'), when='@4.0.3:')
depends_on('python@3.5:', type=('build', 'run'), when='@:4.0.2')
depends_on('py-setuptools', type='build')
depends_on('py-pybind11', when='@:3')

View file

@ -0,0 +1,26 @@
# Copyright 2013-2022 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 PyPystan(PythonPackage):
"""PyStan is a Python interface to Stan, a package for Bayesian inference."""
homepage = "https://mc-stan.org/"
pypi = "pystan/pystan-3.4.0.tar.gz"
maintainers = ['haralmha']
version('3.4.0', sha256='325e2fb0ab804555c05a603e0c9152ab11fcc3af01f3e9a9ff9fe9954b93184f')
depends_on('python@3.8:3', type=('build', 'run'))
depends_on('py-setuptools', type=('build', 'run'))
depends_on('py-poetry-core@1.0.0:', type='build')
depends_on('py-aiohttp@3.6:3', type=('build', 'run'))
depends_on('py-httpstan@4.7', type=('build', 'run'))
depends_on('py-pysimdjson@3.2:3', type=('build', 'run'))
depends_on('py-numpy@1.19:1', type=('build', 'run'))
depends_on('py-clikit@0.6', type=('build', 'run'))