1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-06-10 04:38:52 +02:00

gnu: Add python-alpaca-py.

* gnu/packages/python-web.scm (python-alpaca-py): New variable.

Change-Id: Ie5c9320e3d4ac713dbeb456189d860726802d27b
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
mst
2026-02-19 16:21:16 -07:00
committed by Sharlatan Hellseher
parent 82abe20465
commit a27db7d9e7
+43
View File
@@ -88,6 +88,7 @@
;;; Copyright © 2025, 2026 Allan Adair <allan@adair.no>
;;; Copyright © 2025 Aaron Covrig <aaron.covrig.us@ieee.org>
;;; Copyright © 2026 Daniel Khodabakhsh <d@niel.khodabakh.sh>
;;; Copyright © 2026 mst <mstenek@disroot.org>
;;;
;;; 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")