From 39208be4bd125d421ab11478d1dcbff7ebee0735 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 20 Sep 2025 17:52:46 +0200 Subject: [PATCH] gnu: python-pyannotate: Fix tests. * gnu/packages/python-check.scm (python-pyannotate) [source]: Switch to git-fetch. [arguments]<#:test-backend>: Set it. [native-inputs]: Remove python-wheel. [propagated-inputs, description]: Improve style. Change-Id: I4f310eba2117b062aedc2fad4a96537604dd8bd6 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-check.scm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 98e13286ebcab43654d73f89d20eef1bc47c7858..1fe0697e63e9991b4d15ef7de038a17f66a87e28 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1570,19 +1570,21 @@ flake8 to check PEP-8 naming conventions.") (version "1.2.0") (source (origin - (method url-fetch) - (uri (pypi-uri "pyannotate" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/dropbox/pyannotate") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "16bm0mf7wxvy0lgmcs1p8n1ji8pnvj1jvj8zk3am70dkp825iv84")))) + (base32 "0gmhl4ldan0p774dhrs9a7bmjjphlsy3hhfqq84gak15rdjs59ga")))) (build-system pyproject-build-system) - (native-inputs - (list python-setuptools python-wheel)) - (propagated-inputs - (list python-mypy-extensions python-six)) + (arguments (list #:test-backend #~'unittest)) + (native-inputs (list python-setuptools)) + (propagated-inputs (list python-mypy-extensions python-six)) (home-page "https://github.com/dropbox/pyannotate") (synopsis "Auto-generate PEP-484 annotations") - (description "This package, PyAnnotate, is used to auto-generate PEP-484 -annotations.") + (description + "This package, PyAnnotate, is used to auto-generate PEP-484 annotations.") (license license:asl2.0))) (define-public python-pycotap