gnu: python-gunicorn: Do not set PYTHONPATH.

* gnu/packages/python-web.scm (python-gunicorn)
[phases]: Delete trailing #t.
{check}: Do not set PYTHONPATH.
This commit is contained in:
Maxim Cournoyer 2021-01-24 14:23:55 -05:00
parent 7b1832dffd
commit b79a186702
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -4528,12 +4528,9 @@ (define-public gunicorn
(lambda _ (lambda _
(invoke "make" "-C" "docs" "PAPER=a4" "html" "info") (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
(delete-file "docs/build/texinfo/Makefile") (delete-file "docs/build/texinfo/Makefile")
(delete-file "docs/build/texinfo/Gunicorn.texi") (delete-file "docs/build/texinfo/Gunicorn.texi")))
#t))
(replace 'check (replace 'check
(lambda _ (lambda _
(setenv "PYTHONPATH"
(string-append ".:" (getenv "PYTHONPATH")))
(invoke "pytest"))) (invoke "pytest")))
(add-after 'install 'install-doc (add-after 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
@ -4550,8 +4547,7 @@ (define-public gunicorn
(copy-recursively "examples" examples) (copy-recursively "examples" examples)
(for-each (lambda (file) (for-each (lambda (file)
(copy-file file (string-append doc "/" file))) (copy-file file (string-append doc "/" file)))
'("README.rst" "NOTICE" "LICENSE" "THANKS"))) '("README.rst" "NOTICE" "LICENSE" "THANKS"))))))))
#t)))))
(native-inputs (native-inputs
`(("binutils" ,binutils) ;; for ctypes.util.find_library() `(("binutils" ,binutils) ;; for ctypes.util.find_library()
("python-aiohttp" ,python-aiohttp) ("python-aiohttp" ,python-aiohttp)