From a717c5df4064a6fdbed14ca634941d0aa97707d6 Mon Sep 17 00:00:00 2001 From: haralmha <47558670+haralmha@users.noreply.github.com> Date: Wed, 20 Apr 2022 18:07:43 +0200 Subject: py-httpstan: Add new package (#29770) * py-httpstan: Add new package * Fix dependencies Co-authored-by: Adam J. Stewart * Add run dependency to py-setuptools Co-authored-by: Adam J. Stewart Co-authored-by: Adam J. Stewart --- .../repos/builtin/packages/py-httpstan/package.py | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-httpstan/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-httpstan/package.py b/var/spack/repos/builtin/packages/py-httpstan/package.py new file mode 100644 index 0000000000..10e2d2e175 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-httpstan/package.py @@ -0,0 +1,27 @@ +# 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 PyHttpstan(PythonPackage): + """HTTP-based REST interface to Stan, a package for Bayesian inference.""" + + homepage = "https://mc-stan.org/" + url = "https://github.com/stan-dev/httpstan/archive/refs/tags/4.6.1.tar.gz" + + maintainers = ['haralmha'] + + version('4.6.1', sha256='703e5e04e60651e0004574bb9695827d759fd13eb0d6bd67f827c1bfa0a1fd31') + + depends_on('python@3.7:3', type=('build', 'run')) + 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-pybind11') -- cgit v1.2.3-70-g09d2