mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
52 lines
1 KiB
Nix
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 ];
|
|
};
|
|
})
|