mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
47c559fb47
Diff: https://github.com/Danielhiversen/pyTibber/compare/refs/tags/0.28.1...0.28.2 Changelog: https://github.com/Danielhiversen/pyTibber/releases/tag/0.28.2
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, gql
|
|
, graphql-subscription-manager
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytibber";
|
|
version = "0.28.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Danielhiversen";
|
|
repo = "pyTibber";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-vi5f4V0nPb9K3nwdmwMDoNE85Or6haOWjMY4d/2Fj2s=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
gql
|
|
graphql-subscription-manager
|
|
python-dateutil
|
|
] ++ gql.optional-dependencies.websockets;
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"test/test.py"
|
|
];
|
|
|
|
# Tests access network
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"tibber"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to communicate with Tibber";
|
|
homepage = "https://github.com/Danielhiversen/pyTibber";
|
|
changelog = "https://github.com/Danielhiversen/pyTibber/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|