mbakke pushed a commit to branch master
in repository guix.
commit abbb15309d7dd83bb99682e6962ff98f57f681f9
Author: Marius Bakke <[email protected]>
AuthorDate: Thu Aug 15 18:05:25 2019 +0200
gnu: Add python-databricks-cli.
* gnu/packages/python-web.scm (python-databricks-cli): New public variable.
---
gnu/packages/python-web.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 44 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 5fb4c97..f1629e0 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2017 Christopher Baines <[email protected]>
;;; Copyright © 2016, 2017 Danny Milosavljevic <[email protected]>
;;; Copyright © 2013, 2014, 2015, 2016, 2020 Andreas Enge <[email protected]>
-;;; Copyright © 2016, 2017, 2020 Marius Bakke <[email protected]>
+;;; Copyright © 2016, 2017, 2019, 2020 Marius Bakke <[email protected]>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus
<[email protected]>
;;; Copyright © 2017 Roel Janssen <[email protected]>
;;; Copyright © 2016, 2017, 2020 Julien Lepiller <[email protected]>
@@ -1023,6 +1023,49 @@ another XPath engine to find the matching elements in an
XML or HTML document.")
(define-public python2-cssselect
(package-with-python2 python-cssselect))
+(define-public python-databricks-cli
+ (package
+ (name "python-databricks-cli")
+ (version "0.14.0")
+ (home-page "https://github.com/databricks/databricks-cli")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page) (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0imwpfda2pxix1rx0nlqs48v58icfw065nsv53rpg0dw4bw9x2wi"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "tests" "-vv"
+ ;; XXX: This fails with newer Pytest
+ ;; (upstream uses Pytest 3..).
+ "-k" "not test_get_request_with_list"))))))
+ (native-inputs
+ `(;; For tests.
+ ("python-decorator" ,python-decorator)
+ ("python-mock" ,python-mock)
+ ("python-pytest" ,python-pytest)
+ ("python-requests-mock" ,python-requests-mock)))
+ (propagated-inputs
+ `(("python-click" ,python-click)
+ ("python-configparser" ,python-configparser)
+ ("python-requests" ,python-requests)
+ ("python-six" ,python-six)
+ ("python-tabulate" ,python-tabulate)))
+ (synopsis "Command line interface for Databricks")
+ (description
+ "The Databricks Command Line Interface is a tool which provides an easy
+to use interface to the Databricks platform. The CLI is built on top of the
+Databricks REST APIs.")
+ (license license:asl2.0)))
+
(define-public python-openid-cla
(package
(name "python-openid-cla")