[Top][All Lists]

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

bug#42792: [PATCH] gnu: Add python-pydantic.

From: Mathieu Othacehe
Subject: bug#42792: [PATCH] gnu: Add python-pydantic.
Date: Mon, 10 Aug 2020 12:05:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello Tanguy,

> * gnu/packages/python-xyz.scm (python-pydantic): New variable.

Applied with the following diff:

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a36e99aa32..4102902465 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3829,30 +3829,32 @@ Language (TOML) configuration files.")
        (method git-fetch)
        (uri (git-reference
              (url "";)
-              (commit (string-append "v" version))))
+             (commit (string-append "v" version))))
        (file-name (git-file-name name version))
-       (sha256 (base32 
+       (sha256
+        (base32 "1380s9k77g6q15by9fkxndczjk89q6xpz09jdrqip535xws2z3j8"))))
     (build-system python-build-system)
        (modify-phases %standard-phases
-         ;; Reported upstream: 
-         ;; Not sure how to apply the suggested fix!?
+         ;; Reported upstream:
+         ;; <>.
+         ;; Disable the faulty test as the fix is unclear.
          (add-before 'check 'disable-test
            (lambda _
              (substitute* "tests/"
-                 "_test_assert_raises_validation_error"))
+                "_test_assert_raises_validation_error"))
          (replace 'check
            (lambda _ (invoke "pytest" "-vv" "tests"))))))
      `(("python-pytest" ,python-pytest)))
     (home-page "";)
-    (synopsis "Data validation and settings management using python type 
+    (synopsis "Python data validation and settings management")
-      "Pydantic enforces type hints at runtime, and provides user friendly 
-when data is invalid.")
+     "Pydantic enforces type hints at runtime, and provides user friendly
+errors when data is invalid.")
     (license license:expat)))



reply via email to

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