gnu: python-beartype: Simplify package.
* gnu/packages/python-check.scm (python-beartype) [build-system]: Swap to pyproject-build-system. [arguments]: Use standard 'check phase and <#:test-flags>. Change-Id: I372c5be3b142f0e25d15fd2bac20fc9cd4d8030c
This commit is contained in:
		
							parent
							
								
									579a1a8c02
								
							
						
					
					
						commit
						a3f02bc780
					
				
					 1 changed files with 9 additions and 13 deletions
				
			
		|  | @ -107,20 +107,16 @@ data in a standard way.") | ||||||
|        (uri (pypi-uri "beartype" version)) |        (uri (pypi-uri "beartype" version)) | ||||||
|        (sha256 |        (sha256 | ||||||
|         (base32 "0amzckgw9c93bl4jf0q6322j9wyyf3i8vl03yixfkrpllzv6kv14")))) |         (base32 "0amzckgw9c93bl4jf0q6322j9wyyf3i8vl03yixfkrpllzv6kv14")))) | ||||||
|     (build-system python-build-system) |     (build-system pyproject-build-system) | ||||||
|     (arguments |     (arguments | ||||||
|      (list #:phases |      (list | ||||||
|            #~(modify-phases %standard-phases |       #:test-flags | ||||||
|                (replace 'check |       #~(list | ||||||
|                  (lambda* (#:key tests? #:allow-other-keys) |          "beartype_test" | ||||||
|                    (when tests? |          ;; These tests rely on git through the "get_main_readme_file" helper. | ||||||
|                      (invoke "pytest" "-vv" "beartype_test" |          "-k" (string-append "not test_doc_readme " | ||||||
|                              ;; These tests rely on git through the |                              "and not test_sphinx " | ||||||
|                              ;; "get_main_readme_file" helper. |                              "and not test_pep561_mypy")))) | ||||||
|                              "-k" |  | ||||||
|                              (string-append "not test_doc_readme " |  | ||||||
|                                             "and not test_sphinx " |  | ||||||
|                                             "and not test_pep561_mypy")))))))) |  | ||||||
|     (native-inputs |     (native-inputs | ||||||
|      (list python-pytest)) |      (list python-pytest)) | ||||||
|     (home-page "https://github.com/beartype/beartype") |     (home-page "https://github.com/beartype/beartype") | ||||||
|  |  | ||||||
		Reference in a new issue