nixpkgs/pkgs/development/python-modules/librehardwaremonitor-api/default.nix

40 lines
792 B
Nix

{
aiohttp,
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
hatchling,
}:
buildPythonPackage rec {
pname = "librehardwaremonitor-api";
version = "1.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Sab44";
repo = "librehardwaremonitor-api";
tag = "v${version}";
hash = "sha256-fj+373+e4X8B7OrejeDe0SXRMQR7vsPO4DoGrmxBu7I=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
];
pythonImportsCheck = [ "librehardwaremonitor_api" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Python API client for LibreHardwareMonitor";
homepage = "https://github.com/Sab44/librehardwaremonitor-api";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
}