summaryrefslogtreecommitdiff
path: root/lang/python/python-psutil/Makefile
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2022-01-31 18:05:34 +0300
committerRosen Penev <rosenp@gmail.com>2022-02-24 14:33:56 -0800
commit45b8ef28226a6641ffaede9bba94a12c6dc10686 (patch)
treeb27ff83437c3f7cfd2824f62dcea99069da07855 /lang/python/python-psutil/Makefile
parent7c82525cd6a916116aaec6142759a901fd31a59d (diff)
python-psutil: update to version 5.9.0, fix build on macos
1. updated to 5.9.0 2. psutil can not be built on macos due to build script detects Darwin using sys.platform and changes build logic to build for Darwin, but OpenWrt is Linux. This commit add patch to allow redefining sys.platform and uses env var TARGET_SYS_PLATFORM to specify linux as sys platfrom. Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
Diffstat (limited to 'lang/python/python-psutil/Makefile')
-rw-r--r--lang/python/python-psutil/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/python/python-psutil/Makefile b/lang/python/python-psutil/Makefile
index cf3e2f86c..59b4f0fd1 100644
--- a/lang/python/python-psutil/Makefile
+++ b/lang/python/python-psutil/Makefile
@@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=python-psutil
-PKG_VERSION:=5.8.0
+PKG_VERSION:=5.9.0
PKG_RELEASE:=1
PYPI_NAME:=psutil
-PKG_HASH:=0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6
+PKG_HASH:=869842dbd66bb80c3217158e629d6fceaecc3a3166d3d1faee515b05dd26ca25
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
PKG_LICENSE:=BSD 3-Clause
@@ -38,6 +38,9 @@ define Package/python3-psutil/description
on running processes and system utilization.
endef
+PYTHON3_VARS += \
+ TARGET_SYS_PLATFORM=linux
+
$(eval $(call Py3Package,python3-psutil))
$(eval $(call BuildPackage,python3-psutil))
$(eval $(call BuildPackage,python3-psutil-src))