From acf08ea113b7fbd9a6f4895223cfe19c6a6025be Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 10 Jun 2023 16:55:38 +0200 Subject: [PATCH] python311Packages.gpustat: remove pytest-runner - add changelog to meta - add format - disable on unsupported Python releases --- .../python-modules/gpustat/default.nix | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/gpustat/default.nix b/pkgs/development/python-modules/gpustat/default.nix index 1acb6cf0061a..919f07a6805d 100644 --- a/pkgs/development/python-modules/gpustat/default.nix +++ b/pkgs/development/python-modules/gpustat/default.nix @@ -1,26 +1,34 @@ -{ buildPythonPackage +{ lib , blessed +, buildPythonPackage , fetchPypi -, lib , mockito , nvidia-ml-py , psutil -, pytest-runner -, pythonRelaxDepsHook , pytestCheckHook +, pythonOlder +, pythonRelaxDepsHook }: buildPythonPackage rec { pname = "gpustat"; version = "1.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-WB6P+FjDLJWjIruPA/HZ3D0Xe07LM93L7Sw3PGf04/E="; }; - nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ "nvidia-ml-py" ]; + pythonRelaxDeps = [ + "nvidia-ml-py" + ]; + + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; propagatedBuildInputs = [ blessed @@ -33,11 +41,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "gpustat" ]; + pythonImportsCheck = [ + "gpustat" + ]; meta = with lib; { description = "A simple command-line utility for querying and monitoring GPU status"; homepage = "https://github.com/wookayin/gpustat"; + changelog = "https://github.com/wookayin/gpustat/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ billhuang ]; };