gnu: iotop: Build with python3.
* gnu/packages/linux.scm (iotop)[native-inputs]: Remove python-2, add python. [arguments]: Add phase to fix python3 compatibility.
This commit is contained in:
parent
e00d5b6bbf
commit
d79db39dec
|
@ -2160,11 +2160,16 @@ (define-public iotop
|
||||||
"1kp8mqg2pbxq4xzpianypadfxcsyfgwcaqgqia6h9fsq6zyh4z0s"))))
|
"1kp8mqg2pbxq4xzpianypadfxcsyfgwcaqgqia6h9fsq6zyh4z0s"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; The setup.py script expects python-2.
|
'(#:phases
|
||||||
`(#:python ,python-2
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-build-with-python3
|
||||||
|
(lambda _
|
||||||
|
(substitute* "setup.py"
|
||||||
|
(("itervalues") "values"))
|
||||||
|
#t)))
|
||||||
;; There are currently no checks in the package.
|
;; There are currently no checks in the package.
|
||||||
#:tests? #f))
|
#:tests? #f))
|
||||||
(native-inputs `(("python" ,python-2)))
|
(native-inputs `(("python" ,python)))
|
||||||
(home-page "http://guichaz.free.fr/iotop/")
|
(home-page "http://guichaz.free.fr/iotop/")
|
||||||
(synopsis
|
(synopsis
|
||||||
"Displays the IO activity of running processes")
|
"Displays the IO activity of running processes")
|
||||||
|
|
Loading…
Reference in a new issue