@@ -122,6 +122,7 @@ (define-module (gnu packages finance)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages readline)
+ #:use-module (gnu packages rpc)
#:use-module (gnu packages security-token)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages sqlite)
@@ -1072,6 +1073,38 @@ (define-public python-alpha-vantage
Vantage API.")
(license license:expat)))
+(define-public python-degiro-connector
+ (package
+ (name "python-degiro-connector")
+ (version "2.0.23")
+ (source (origin
+ (method git-fetch) ;no tests in PyPI
+ (uri (git-reference
+ (url "https://github.com/Chavithra/degiro-connector")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1hd4689h31386qlqhznxq7jwpz1a4fnggk981byip2yh7gd6g0yz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-flags #~(list "-m" "not network"
+ ;; XXX: these tests failed, check why.
+ "-k" (string-append
+ "not test_fixture_user_token"
+ " and not test_fixture_credentials"))))
+ (native-inputs (list python-poetry-core python-pytest python-pytest-mock))
+ (propagated-inputs (list python-grpcio
+ python-onetimepass
+ python-pandas
+ python-protobuf
+ python-requests
+ python-wrapt))
+ (home-page "https://github.com/chavithra/degiro-connector")
+ (synopsis "Library to access Degiro's API")
+ (description "This package provides a library to access Degiro's API.")
+ (license license:bsd-3)))
+
(define-public python-mnemonic
(package
(name "python-mnemonic")