Name: python-nvidia-ml-py Version: 13.610.43 Release: %autorelease Summary: Python bindings for the NVIDIA Management Library (NVML) License: BSD-3-Clause URL: https://pypi.org/project/nvidia-ml-py/ Source: %{pypi_source nvidia_ml_py} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Python bindings to the NVIDIA Management Library (NVML), used to query and manage the state of NVIDIA GPUs. Lindoze uses this for its NVIDIA GPU performance page; the module imports cleanly on systems without an NVIDIA GPU (NVML simply fails to initialize and the page is skipped).} %description %_description %package -n python3-nvidia-ml-py Summary: %{summary} %description -n python3-nvidia-ml-py %_description %prep %autosetup -p1 -n nvidia_ml_py-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Upstream ships a top-level example.py that would land in site-packages as a # generic "example" module (collision risk). We only need pynvml. rm -f %{buildroot}%{python3_sitelib}/example.py rm -f %{buildroot}%{python3_sitelib}/__pycache__/example.* %pyproject_save_files pynvml %check %pyproject_check_import %files -n python3-nvidia-ml-py -f %{pyproject_files} %changelog %autochangelog