gnu: python-setproctitle: Fix indentation.

* gnu/packages/python-xyz.scm (python-setproctitle): Re-indent.
This commit is contained in:
Tobias Geerinckx-Rice 2020-06-27 00:13:18 +02:00
parent 3f68322e5a
commit 90596f373a
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79

View File

@ -13121,21 +13121,21 @@ English stemmer.")
(package-with-python2 python-snowballstemmer)) (package-with-python2 python-snowballstemmer))
(define-public python-setproctitle (define-public python-setproctitle
(package (package
(name "python-setproctitle") (name "python-setproctitle")
(version "1.1.10") (version "1.1.10")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "setproctitle" version)) (uri (pypi-uri "setproctitle" version))
(sha256 (sha256
(base32 (base32
"163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2")))) "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'check 'patch-Makefile (add-before 'check 'patch-Makefile
;; Stricly this is only required for the python2 variant. ;; Stricly this is only required for the python2 variant.
;; But adding a phase in an inherited package seems to be ;; But adding a phase in an inherited package seems to be
;; cumbersum. So we patch even for python3. ;; cumbersum. So we patch even for python3.
@ -13146,7 +13146,7 @@ English stemmer.")
(("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ") (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
(string-append nose "/bin/nosetests ")))) (string-append nose "/bin/nosetests "))))
#t))) #t)))
(replace 'check (replace 'check
(lambda _ (lambda _
(setenv "PYTHON" (or (which "python3") (which "python"))) (setenv "PYTHON" (or (which "python3") (which "python")))
(setenv "PYCONFIG" (string-append (or (which "python3-config") (setenv "PYCONFIG" (string-append (or (which "python3-config")
@ -13156,21 +13156,20 @@ English stemmer.")
;; No need to extend PYTHONPATH to find the built package, since ;; No need to extend PYTHONPATH to find the built package, since
;; the Makefile will build anyway ;; the Makefile will build anyway
(invoke "make" "check")))))) (invoke "make" "check"))))))
(native-inputs (native-inputs
`(("procps" ,procps))) ; required for tests `(("procps" ,procps))) ; required for tests
(home-page (home-page "https://github.com/dvarrazzo/py-setproctitle")
"https://github.com/dvarrazzo/py-setproctitle") (synopsis
(synopsis "Setproctitle implementation for Python to customize the process title")
"Setproctitle implementation for Python to customize the process title") (description "The library allows a process to change its title (as displayed
(description "The library allows a process to change its title (as displayed
by system tools such as ps and top). by system tools such as ps and top).
Changing the title is mostly useful in multi-process systems, for Changing the title is mostly useful in multi-process systems, for
example when a master process is forked: changing the children's title example when a master process is forked: changing the children's title
allows identifying the task each process is busy with. The technique allows identifying the task each process is busy with. The technique
is used by PostgreSQL and the OpenSSH Server for example.") is used by PostgreSQL and the OpenSSH Server for example.")
(license license:bsd-3) (license license:bsd-3)
(properties `((python2-variant . ,(delay python2-setproctitle)))))) (properties `((python2-variant . ,(delay python2-setproctitle))))))
(define-public python2-setproctitle (define-public python2-setproctitle
(let ((base (package-with-python2 (let ((base (package-with-python2