gnu: python-mypy: Update to 0.790.
* gnu/packages/python-check.scm (python-mypy): Update to 0.790. [origin]: Fetch sources from git. [phases]{check}: Run the unit tests only, not the self test, which fails. [native-inputs]: Remove python-py. Use python-pytest-6.
This commit is contained in:
parent
ed72e55831
commit
ca5e4b46b7
1 changed files with 19 additions and 11 deletions
|
@ -1042,22 +1042,31 @@ supported by the MyPy typechecker.")
|
||||||
(define-public python-mypy
|
(define-public python-mypy
|
||||||
(package
|
(package
|
||||||
(name "python-mypy")
|
(name "python-mypy")
|
||||||
(version "0.782")
|
(version "0.790")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
;; Because of https://github.com/python/mypy/issues/9584, the
|
||||||
(uri (pypi-uri "mypy" version))
|
;; mypyc/analysis directory is missing in the PyPI archive, leading to
|
||||||
(sha256
|
;; test failures.
|
||||||
(base32
|
(method git-fetch)
|
||||||
"030kn709515452n6gy2i1d9fg6fyrkmdz228lfpmbslybsld9xzg"))))
|
(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
|
||||||
|
"0zq3lpdf9hphcklk40wz444h8w3dkhwa12mqba5j9lmg11klnhz7"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "./runtests.py")
|
(invoke "pytest" "mypyc"))))))
|
||||||
#t)))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-attrs" ,python-attrs)
|
`(("python-attrs" ,python-attrs)
|
||||||
("python-flake8" ,python-flake8)
|
("python-flake8" ,python-flake8)
|
||||||
|
@ -1066,8 +1075,7 @@ supported by the MyPy typechecker.")
|
||||||
("python-importlib-metadata" ,python-importlib-metadata)
|
("python-importlib-metadata" ,python-importlib-metadata)
|
||||||
("python-lxml" ,python-lxml)
|
("python-lxml" ,python-lxml)
|
||||||
("python-psutil" ,python-psutil)
|
("python-psutil" ,python-psutil)
|
||||||
("python-py" ,python-py)
|
("python-pytest" ,python-pytest-6)
|
||||||
("python-pytest" ,python-pytest)
|
|
||||||
("python-pytest-cov" ,python-pytest-cov)
|
("python-pytest-cov" ,python-pytest-cov)
|
||||||
("python-pytest-forked" ,python-pytest-forked)
|
("python-pytest-forked" ,python-pytest-forked)
|
||||||
("python-pytest-xdist" ,python-pytest-xdist)
|
("python-pytest-xdist" ,python-pytest-xdist)
|
||||||
|
|
Reference in a new issue