From a27db7d9e7d417b06a402ab88db4ddb079a56d8a Mon Sep 17 00:00:00 2001 From: mst Date: Thu, 19 Feb 2026 16:21:16 -0700 Subject: gnu: Add python-alpaca-py. * gnu/packages/python-web.scm (python-alpaca-py): New variable. Change-Id: Ie5c9320e3d4ac713dbeb456189d860726802d27b Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index d16bef0d7d8..94d744b9fef 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -88,6 +88,7 @@ ;;; Copyright © 2025, 2026 Allan Adair ;;; Copyright © 2025 Aaron Covrig ;;; Copyright © 2026 Daniel Khodabakhsh +;;; Copyright © 2026 mst ;;; ;;; This file is part of GNU Guix. ;;; @@ -219,6 +220,48 @@ writing applications that talk to network enabled embedded @acronym{IoT,Internet of Things} devices.") (license license:expat))) +(define-public python-alpaca-py + (package + (name "python-alpaca-py") + (version "0.43.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/alpacahq/alpaca-py") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0majn27r2s2z5nbqvkpmw04kswhj9xkmvmm0rkvb3fga9lwwivlb")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'set-version + (lambda _ + (setenv "POETRY_DYNAMIC_VERSIONING_BYPASS" + #$(version-major+minor+point version))))))) + (native-inputs + (list python-poetry-core + python-poetry-dynamic-versioning + python-pytest + python-pytest-asyncio + python-requests-mock)) + (propagated-inputs + (list python-msgpack + python-pandas + python-pydantic + python-requests + python-sseclient-py + python-websockets)) + (home-page "https://alpaca.markets/sdks/python/") + (synopsis "Alpaca API official Python SDK") + (description + "Alpaca-py provides an interface to REST, WebSocket and SSE endpoints +that allow interaction with the @url{https://alpaca.markets/, Alpaca} API.") + (license license:asl2.0))) + (define-public python-anaconda-client (package (name "python-anaconda-client") -- cgit v1.3