app-admin/diamond: fix psutil interaction
authorFabian Groffen <grobian@gentoo.org>
Thu, 21 Feb 2019 18:35:44 +0000 (19:35 +0100)
committerFabian Groffen <grobian@gentoo.org>
Thu, 21 Feb 2019 18:35:44 +0000 (19:35 +0100)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

app-admin/diamond/diamond-4.0.515.ebuild

index 6c874d48ed22f96e2b8c504386d91fbb6928d488..4477513e976e5f23c084bcf0376cd9f1a9d476a7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -43,6 +43,9 @@ src_prepare() {
 
        # fix the version (not set in GitHub archive)
        sed -i -e "s/__VERSIONTOKENHERE__/${PV}/" src/diamond/version.py.tmpl || die
+       # fix psutil usage
+       sed -i -e 's/psutil\.network_io_counters/psutil.net_io_counters/' \
+               src/collectors/network/network.py || die
        # fix symlink out of place
        rm README.md || die
        cp docs/index.md README.md || die