nixpkgs/pkgs/development/python-modules/pytibber/default.nix
2026-05-15 15:34:55 +00:00

52 lines
1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
gql,
pytest-asyncio,
pytestCheckHook,
setuptools,
websockets,
}:
buildPythonPackage (finalAttrs: {
pname = "pytibber";
version = "0.37.6";
pyproject = true;
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pyTibber";
tag = finalAttrs.version;
hash = "sha256-pyU8ju1T+AI4UvWq4/gtS8wV0a/cZfoRzlWpoK9eTtM=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
gql
websockets
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTestPaths = [
# Tests access network
"test/test_tibber.py"
];
pythonImportsCheck = [ "tibber" ];
meta = {
description = "Python library to communicate with Tibber";
homepage = "https://github.com/Danielhiversen/pyTibber";
changelog = "https://github.com/Danielhiversen/pyTibber/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ dotlambda ];
};
})