ntpd-rs: 1.3.0 -> 1.3.1 (#361213)
[NixPkgs.git] / pkgs / development / python-modules / gpustat / default.nix
blobd3a06d7f890032749c9672a09f5cb266ccb17374
2   lib,
3   blessed,
4   buildPythonPackage,
5   fetchPypi,
6   mockito,
7   nvidia-ml-py,
8   psutil,
9   pytestCheckHook,
10   pythonOlder,
11   setuptools-scm,
14 buildPythonPackage rec {
15   pname = "gpustat";
16   version = "1.1.1";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-wY0+1VGPwWMAxC1pTevHCuuzvlXK6R8dtk1jtfqK+dg=";
24   };
26   pythonRelaxDeps = [ "nvidia-ml-py" ];
28   nativeBuildInputs = [
29     setuptools-scm
30   ];
32   propagatedBuildInputs = [
33     blessed
34     nvidia-ml-py
35     psutil
36   ];
38   nativeCheckInputs = [
39     mockito
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [ "gpustat" ];
45   meta = with lib; {
46     description = "Simple command-line utility for querying and monitoring GPU status";
47     mainProgram = "gpustat";
48     homepage = "https://github.com/wookayin/gpustat";
49     changelog = "https://github.com/wookayin/gpustat/releases/tag/v${version}";
50     license = licenses.mit;
51     maintainers = with maintainers; [ billhuang ];
52   };