[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42465] [PATCH 10/10] gnu: Add python-mypy.
From: |
Marius Bakke |
Subject: |
[bug#42465] [PATCH 10/10] gnu: Add python-mypy. |
Date: |
Sat, 25 Jul 2020 18:18:21 +0200 |
Tanguy Le Carrour <tanguy@bioneland.org> writes:
> * gnu/packages/python-check.scm (python-mypy): New variable.
Neat! I only recently learned about MyPy, good to have it in Guix.
> +(define-public python-mypy
> + (package
> + (name "python-mypy")
> + (version "0.782")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "mypy" version))
> + (sha256
> + (base32
> + "030kn709515452n6gy2i1d9fg6fyrkmdz228lfpmbslybsld9xzg"))))
> + (build-system python-build-system)
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (replace 'check
> + (lambda _
> + (invoke "./runtests.py")
> + #t)))))
> + (native-inputs
> + `(("python-attrs" ,python-attrs)
> + ("python-flake8" ,python-flake8)
> + ("python-flake8-bugbear" ,python-flake8-bugbear)
> + ("python-flake8-pyi" ,python-flake8-pyi)
> + ("python-importlib-metadata" ,python-importlib-metadata)
> + ("python-lxml" ,python-lxml)
> + ("python-psutil" ,python-psutil)
> + ("python-py" ,python-py)
> + ("python-pytest" ,python-pytest)
> + ("python-pytest-cov" ,python-pytest-cov)
> + ("python-pytest-forked" ,python-pytest-forked)
> + ("python-pytest-xdist" ,python-pytest-xdist)
> + ("python-setuptools" ,python-setuptools)
> + ("python-virtualenv" ,python-virtualenv)))
> + (propagated-inputs
> + `(("python-mypy-extensions" ,python-mypy-extensions)
> + ("python-typing-extensions" ,python-typing-extensions)
> + ("python-typed-ast" ,python-typed-ast)))
> + (home-page "http://www.mypy-lang.org/")
> + (synopsis "Optional static type checker for Python")
Perhaps s/Optional//? I mean, if it was mandatory, wouldn't it be part
of cpython? :-P Probably I'm missing something, I see upstream uses
optional too.
Anyway, LGTM, nice work!
signature.asc
Description: PGP signature
- [bug#42465] [PATCH 03/10] gnu: Add python-mypy-extensions., (continued)
- [bug#42465] [PATCH 04/10] gnu: Add python-typing-inspect., Tanguy Le Carrour, 2020/07/21
- [bug#42465] [PATCH 05/10] gnu: Add python-libcst., Tanguy Le Carrour, 2020/07/21
- [bug#42465] [PATCH 06/10] gnu: Add python-lark-parser., Tanguy Le Carrour, 2020/07/21
- [bug#42465] [PATCH 09/10] gnu: Add python-flake8-pyi., Tanguy Le Carrour, 2020/07/21
- [bug#42465] [PATCH 10/10] gnu: Add python-mypy., Tanguy Le Carrour, 2020/07/21
[bug#42465] [PATCH 07/10] gnu: Add python-hypothesmith., Tanguy Le Carrour, 2020/07/21
[bug#42465] [PATCH 08/10] gnu: Add python-flake8-bugbear., Tanguy Le Carrour, 2020/07/21
[bug#42465] [PATCH 01/10] gnu: python-typing-extension: Update to 3.7.4.2., Marius Bakke, 2020/07/25
[bug#42465] [PATCH v2 01/10] gnu: python-typing-extension: Update to 3.7.4.2., Tanguy Le Carrour, 2020/07/22