Merge pull request #237049 from fabaff/gpustat-pytest-runner
python311Packages.gpustat: remove pytest-runner
This commit is contained in:
commit
7dce19a7f0
1 changed files with 18 additions and 7 deletions
|
@ -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 ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue