guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

272/361: gnu: python-robotframework-datadriver: Update to 1.11.2.


From: guix-commits
Subject: 272/361: gnu: python-robotframework-datadriver: Update to 1.11.2.
Date: Thu, 21 Nov 2024 06:29:33 -0500 (EST)

sharlatan pushed a commit to branch python-team
in repository guix.

commit 5d8832b210ef5aa56b6e260677ec0aa9e472f149
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Nov 7 20:26:01 2024 +0000

    gnu: python-robotframework-datadriver: Update to 1.11.2.
    
    * gnu/packages/python-xyz.scm (python-robotframework-datadriver): Update
    to 1.11.2. Improve package style.
    [source]: Swap to git checkout containing tests.
    [build-system]: Swap to pyproject-build-system.
    [phases]{skip-problematic-tests}: Add more files to skip.
    [native-inputs]: Add python-setuptools and python-wheel.
    
    Change-Id: I03fd2ff5c89a2801cfc5ee2cd1d757bc47cb88f7
---
 gnu/packages/python-xyz.scm | 62 +++++++++++++++++++++++++++------------------
 1 file changed, 38 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f3d377b623..8f7cfb11b3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7698,34 +7698,48 @@ process automation (RPA).")
 (define-public python-robotframework-datadriver
   (package
     (name "python-robotframework-datadriver")
-    (version "1.6.1")
+    (version "1.11.2")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "robotframework-datadriver" version))
+       (method git-fetch)               ; no tests in PyPI release
+       (uri (git-reference
+             (url "https://github.com/Snooz82/robotframework-datadriver";)
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0mcyr3v98nvfnvffy096qp3jqslas7l8hh0j00lpi0mp12cd0qk9"))))
-    (build-system python-build-system)
+        (base32 "0fq6ykbnypirw1wrgigsfzg8lv8g7j9gs46v0n814ycw8906n43x"))))
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (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))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'skip-problematic-tests
+            (lambda _
+              (for-each delete-file-recursively
+                        (list
+                            ;; 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.
+                            "atest/TestCases/csv_reader_config"
+                            ;; Error in file on line 6: Non-existing setting
+                            ;; 'Test Tags'.
+                            
"atest/TestCases/DataTypes/Types_in_dicts.robot"))))
+          (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
+           python-setuptools
+           python-wheel))
+    (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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]