mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-07 13:53:42 +00:00
Diff: https://github.com/home-assistant-ecosystem/python-glances-api/compare/0.9.1...0.10.0 Changelog: https://github.com/home-assistant-ecosystem/python-glances-api/releases/tag/0.10.0
44 lines
986 B
Nix
44 lines
986 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
httpx,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytest-httpx,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "glances-api";
|
|
version = "0.10.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-ecosystem";
|
|
repo = "python-glances-api";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-xYKjKbISNa1gIZMgmP+2HJFNoelZEzdP0oBoIzdI/Ro=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [ httpx ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-httpx
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "glances_api" ];
|
|
|
|
meta = {
|
|
description = "Python API for interacting with Glances";
|
|
homepage = "https://github.com/home-assistant-ecosystem/python-glances-api";
|
|
changelog = "https://github.com/home-assistant-ecosystem/python-glances-api/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|