aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-05-27 23:18:16 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-05-27 23:43:36 +0000
commit2a1380e0bb519dc9447b3a9052efb416c797f692 (patch)
tree70cb89af84a4ed914c967602363451fe6bec3048
parentf272d12c8ebc92f75a1f64829b5deee144554991 (diff)
downloadports-2a1380e0bb519dc9447b3a9052efb416c797f692.tar.gz
ports-2a1380e0bb519dc9447b3a9052efb416c797f692.zip
devel/py-py3nvml: Add py-py3nvml 0.2.7
Python 3 compatible bindings to the NVIDIA Management Library. Can be used to query the state of the GPUs on your system. This was ported from the NVIDIA provided python bindings nvidia-ml-py, which only supported python 2.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-py3nvml/Makefile21
-rw-r--r--devel/py-py3nvml/distinfo3
-rw-r--r--devel/py-py3nvml/pkg-descr3
4 files changed, 28 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 6a60af3bf0bc..3cbd944e6e2f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5175,6 +5175,7 @@
SUBDIR += py-py
SUBDIR += py-py-partiql-parser
SUBDIR += py-py-ubjson
+ SUBDIR += py-py3nvml
SUBDIR += py-pyTooling
SUBDIR += py-py_interface
SUBDIR += py-pyasn1
diff --git a/devel/py-py3nvml/Makefile b/devel/py-py3nvml/Makefile
new file mode 100644
index 000000000000..d9326bbc1097
--- /dev/null
+++ b/devel/py-py3nvml/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= py3nvml
+PORTVERSION= 0.2.7
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Python 3 Bindings for the NVIDIA Management Library
+WWW= https://github.com/fbcotter/py3nvml
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xmltodict>=0:devel/py-xmltodict@${PY_FLAVOR}
+
+USES= python:3.7+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-py3nvml/distinfo b/devel/py-py3nvml/distinfo
new file mode 100644
index 000000000000..63a00e060c08
--- /dev/null
+++ b/devel/py-py3nvml/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1685162016
+SHA256 (py3nvml-0.2.7.tar.gz) = 09ee1d04598a6e664e24465f804ce3bfe119a6fdb5362df1c168f8aa929fbd73
+SIZE (py3nvml-0.2.7.tar.gz) = 58224
diff --git a/devel/py-py3nvml/pkg-descr b/devel/py-py3nvml/pkg-descr
new file mode 100644
index 000000000000..a893a8ecb94d
--- /dev/null
+++ b/devel/py-py3nvml/pkg-descr
@@ -0,0 +1,3 @@
+Python 3 compatible bindings to the NVIDIA Management Library. Can be used to
+query the state of the GPUs on your system. This was ported from the NVIDIA
+provided python bindings nvidia-ml-py, which only supported python 2.