From 563c842a760c60c5e4f3f46e282f7994903a64df Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 5 Sep 2023 14:23:26 +0300 Subject: gn: python: Add python-mypy-0.981 * gn/packages/python.scm (python-mypy-0.981): New package. Signed-off-by: Munyoki Kilyungi --- gn/packages/python.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gn') diff --git a/gn/packages/python.scm b/gn/packages/python.scm index adfc2f4..d728ef3 100644 --- a/gn/packages/python.scm +++ b/gn/packages/python.scm @@ -1900,3 +1900,26 @@ concepts.") (propagated-inputs (modify-inputs (package-propagated-inputs yoyo-migrations) (append python-importlib-metadata))))) + +(define-public python-mypy-0.981 + (package + (inherit python-mypy) + (name "python-mypy") + (version "0.981") + (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)) + (sha256 + (base32 + "0awigl51an7466yk236f9vsbqpz2jzd6dsg9v5a4cia37vz4li0a")))))) -- cgit v1.2.3