summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-12-03 15:33:12 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-12-13 12:34:00 -0500
commitfc9ca46aa6403c90e2ea5c815d813d2dba162dfb (patch)
tree32b94ee0dc5b1c2dda12048742d6cab7b7bfb55a /gnu/packages/python-xyz.scm
parent33f80689a987049928a03649bfeb25e6d77aa764 (diff)
gnu: Add python-robotframework-datadriver.
* gnu/packages/python-xyz.scm (python-robotframework-datadriver): New variable.
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 18db8751d1..a76138c1c6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4474,6 +4474,48 @@ acceptance testing, acceptance test driven development (ATDD), and robotic
process automation (RPA).")
(license license:asl2.0)))
+(define-public python-robotframework-datadriver
+ (package
+ (name "python-robotframework-datadriver")
+ (version "1.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "robotframework-datadriver" version))
+ (sha256
+ (base32 "1kv6h47850gdqr8azknkh81z7hw6yz5pjn53mkn71ly4szw4pqb7"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-readme-file-name
+ (lambda _
+ (rename-file "Readme.rst" "README.rst")))
+ (add-before 'check 'skip-problematic-tests
+ (lambda _
+ ;; The test file 'tab-csv-file-name.tsv' contains special
+ ;; characters for which there is no locale in the build
+ ;; environment, causing one test to fail.
+ (delete-file-recursively "atest/TestCases/csv_reader_config")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "atest"
+ (invoke "sh" "run_atest.sh"))))))))
+ (native-inputs (list python-docutils
+ python-robotframework-stacktrace))
+ (propagated-inputs (list python-openpyxl
+ python-pandas
+ python-pygments
+ python-robotframework))
+ (home-page "https://github.com/Snooz82/robotframework-datadriver")
+ (synopsis "Data-driven test extension for Robot Framework")
+ (description "DataDriver is a data-driven extension for Robot Framework.
+DataDriver uses the Listener Interface of Robot Framework to create new test
+cases based on a data file that contains the test data. DataDriver supports
+data files in the CSV, XLS or XLSX formats.")
+ (license license:asl2.0)))
+
(define-public python-robotframework-lint
;; There is no properly tagged release; the commit below seems to correspond
;; to the 0.9 stable release available from PyPI. The tests are not