Files
nixpkgs/pkgs/development/python-modules/py3nvml/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

31 lines
632 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, xmltodict
}:
buildPythonPackage rec {
pname = "py3nvml";
version = "0.2.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-Ce4dBFmKbmZOJEZfgEzjv+EZpv21Ni3xwWj4qpKfvXM=";
};
propagatedBuildInputs = [
xmltodict
];
pythonImportsCheck = [ "py3nvml" ];
meta = with lib; {
description = "Python 3 Bindings for the NVIDIA Management Library";
mainProgram = "py3smi";
homepage = "https://pypi.org/project/py3nvml/";
license = with licenses; [ bsd3 bsd2 ];
maintainers = with maintainers; [ happysalada ];
};
}