Merge pull request from fabaff/gpustat-pytest-runner

python311Packages.gpustat: remove pytest-runner
This commit is contained in:
Fabian Affolter 2023-06-10 23:39:25 +02:00 committed by GitHub
commit 7dce19a7f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,26 +1,34 @@
{ buildPythonPackage { lib
, blessed , blessed
, buildPythonPackage
, fetchPypi , fetchPypi
, lib
, mockito , mockito
, nvidia-ml-py , nvidia-ml-py
, psutil , psutil
, pytest-runner
, pythonRelaxDepsHook
, pytestCheckHook , pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "gpustat"; pname = "gpustat";
version = "1.0.0"; version = "1.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-WB6P+FjDLJWjIruPA/HZ3D0Xe07LM93L7Sw3PGf04/E="; hash = "sha256-WB6P+FjDLJWjIruPA/HZ3D0Xe07LM93L7Sw3PGf04/E=";
}; };
nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [
pythonRelaxDeps = [ "nvidia-ml-py" ]; "nvidia-ml-py"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [ propagatedBuildInputs = [
blessed blessed
@ -33,11 +41,14 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "gpustat" ]; pythonImportsCheck = [
"gpustat"
];
meta = with lib; { meta = with lib; {
description = "A simple command-line utility for querying and monitoring GPU status"; description = "A simple command-line utility for querying and monitoring GPU status";
homepage = "https://github.com/wookayin/gpustat"; homepage = "https://github.com/wookayin/gpustat";
changelog = "https://github.com/wookayin/gpustat/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ billhuang ]; maintainers = with maintainers; [ billhuang ];
}; };