From e8c7a4c52e4de0b852afcc421caca0c187bbc3f5 Mon Sep 17 00:00:00 2001 From: msglm Date: Wed, 3 Apr 2024 13:06:38 -0500 Subject: add oanda python api support --- oanda.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 oanda.scm diff --git a/oanda.scm b/oanda.scm new file mode 100644 index 0000000..881b37b --- /dev/null +++ b/oanda.scm @@ -0,0 +1,29 @@ +(define-module (oanda) + #:use-module (gnu packages python) + #:use-module (gnu packages python-web) + #:use-module (gnu packages python-xyz) + #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) + #:use-module (guix build utils) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module ((guix licenses) :prefix license:) +) + +(define-public python-oanda-v20 + (package + (name "python-oanda-v20") + (version "3.0.25.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "v20" version)) + (sha256 + (base32 "1wll5gw6mqpfz3mc1k5bz1xgc7d11y4ihvvqqfsy9284jxv8zwgv")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-requests python-ujson python-pyyaml)) + (home-page "https://github.com/oanda/v20-python") + (synopsis "OANDA v20 bindings for Python") + (description "OANDA v20 bindings for Python") + (license license:expat))) + -- cgit v1.2.3