unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Prat <vprat@deeplinks.com>
To: 64299@debbugs.gnu.org
Subject: [bug#64299] [PATCH] gnu: python-mypy: Update to 1.4.1.
Date: Mon, 26 Jun 2023 11:53:08 +0200	[thread overview]
Message-ID: <CAH9Ak7L9bDL_NBvV+48fRn5+-5FDdP7UmpsdfoztRf3=ORsjzQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0002-gnu-python-mypy-Fix-style.patch --]
[-- Type: text/x-patch, Size: 2856 bytes --]

From df2f9b0e844359f761788bf4dacdf93c53edcb19 Mon Sep 17 00:00:00 2001
From: Vincent Prat <vprat@deeplinks.com>
Date: Mon, 26 Jun 2023 11:48:27 +0200
Subject: [PATCH 2/2] gnu: python-mypy: Fix style.

* gnu/packages/python-check.scm (python-mypy): Fix style.
---
 gnu/packages/python-check.scm | 46 +++++++++++++++++------------------
 1 file changed, 22 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 3a718954c5..a5e6299167 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1835,34 +1835,32 @@ (define-public python-mypy
   (package
     (name "python-mypy")
     (version "1.4.1")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (pypi-uri "mypy" version))
-       (sha256
-        (base32
-         "06svfmqbnb45pydy8lcrr12wqhhla5dl888w0g4f3wm1ismxkg4v"))))
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "mypy" version))
+              (sha256
+               (base32
+                "06svfmqbnb45pydy8lcrr12wqhhla5dl888w0g4f3wm1ismxkg4v"))))
     (build-system python-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests?
-               (invoke "pytest" "mypyc")))))))
-    (native-inputs
-     (list python-attrs
-           python-lxml
-           python-psutil
-           python-pytest
-           python-pytest-forked
-           python-pytest-xdist
-           python-virtualenv))
-    (propagated-inputs
-     (list python-mypy-extensions python-tomli python-typing-extensions))
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest" "mypyc")))))))
+    (native-inputs (list python-attrs
+                         python-lxml
+                         python-psutil
+                         python-pytest
+                         python-pytest-forked
+                         python-pytest-xdist
+                         python-virtualenv))
+    (propagated-inputs (list python-mypy-extensions python-tomli
+                             python-typing-extensions))
     (home-page "https://www.mypy-lang.org/")
     (synopsis "Static type checker for Python")
-    (description "Mypy is an optional static type checker for Python that aims
+    (description
+     "Mypy is an optional static type checker for Python that aims
 to combine the benefits of dynamic typing and static typing.  Mypy combines
 the expressive power and convenience of Python with a powerful type system and
 compile-time type checking.  Mypy type checks standard Python programs; run
-- 
2.39.2


[-- Attachment #3: 0001-gnu-python-mypy-Update-to-1.4.1.patch --]
[-- Type: text/x-patch, Size: 2224 bytes --]

From c42d4cbc518d200e1e31a31ce2e27effa1e7abed Mon Sep 17 00:00:00 2001
From: Vincent Prat <vprat@deeplinks.com>
Date: Mon, 26 Jun 2023 11:44:47 +0200
Subject: [PATCH 1/2] gnu: python-mypy: Update to 1.4.1.

* gnu/packages/python-check.scm (python-mypy): Update to 1.4.1.
---
 gnu/packages/python-check.scm | 23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 87e15b4560..3a718954c5 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1834,24 +1834,14 @@ (define-public python-mypy-extensions
 (define-public python-mypy
   (package
     (name "python-mypy")
-    (version "0.971")
+    (version "1.4.1")
     (source
      (origin
-       ;; Because of https://github.com/python/mypy/issues/9584, the
-       ;; mypyc/analysis directory is missing in the PyPI archive, leading to
-       ;; test failures.
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/python/mypy")
-             (commit (string-append "v" version))
-             ;; Fetch git submodules otherwise typeshed is not fetched.
-             ;; Typeshed is a collection of Python sources type annotation
-             ;; (data) files.
-             (recursive? #t)))
-       (file-name (git-file-name name version))
+       (method url-fetch)
+       (uri (pypi-uri "mypy" version))
        (sha256
         (base32
-         "0i8swdynms1wpiprgqn24za6mx8rlgxr2jash3cb5xi8jyf58n97"))))
+         "06svfmqbnb45pydy8lcrr12wqhhla5dl888w0g4f3wm1ismxkg4v"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
@@ -1859,10 +1849,7 @@ (define-public python-mypy
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
-               (invoke "pytest" "-vv" "mypyc"
-                       ;; XXX: This test gets an unexpected DeprecationWarning
-                       ;; from recent versions of setuptools.  Ignore for now.
-                       "-k" "not testImports")))))))
+               (invoke "pytest" "mypyc")))))))
     (native-inputs
      (list python-attrs
            python-lxml
-- 
2.39.2


             reply	other threads:[~2023-06-26  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-26  9:53 Vincent Prat [this message]
2023-09-15 10:32 ` bug#64299: [PATCH] gnu: python-mypy: Update to 1.4.1 Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH9Ak7L9bDL_NBvV+48fRn5+-5FDdP7UmpsdfoztRf3=ORsjzQ@mail.gmail.com' \
    --to=vprat@deeplinks.com \
    --cc=64299@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).