1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 06:42:33 +03:00
nixpkgs/pkgs/development/python-modules/pytibber/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Normal View History

2021-06-15 15:06:16 +02:00
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, gql
, graphql-subscription-manager
, pytest-asyncio
2021-06-15 15:06:16 +02:00
, pytestCheckHook
, python-dateutil
, pythonOlder
, pytz
2021-06-15 15:06:16 +02:00
}:
buildPythonPackage rec {
pname = "pytibber";
version = "0.26.7";
format = "setuptools";
2021-06-15 15:06:16 +02:00
disabled = pythonOlder "3.9";
2021-06-15 15:06:16 +02:00
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pyTibber";
rev = "refs/tags/${version}";
hash = "sha256-T2J31+H/cO000qi2AlEGaFtAu0fl7u1LAA/QUxRAiK8=";
2021-06-15 15:06:16 +02:00
};
propagatedBuildInputs = [
aiohttp
async-timeout
gql
graphql-subscription-manager
2021-06-15 15:06:16 +02:00
python-dateutil
] ++ gql.optional-dependencies.websockets;
2021-06-15 15:06:16 +02:00
checkInputs = [
pytest-asyncio
2021-06-15 15:06:16 +02:00
pytestCheckHook
];
pytestFlagsArray = [
"test/test.py"
];
2021-06-15 15:06:16 +02:00
# Tests access network
2021-06-15 15:06:16 +02:00
doCheck = false;
pythonImportsCheck = [
"tibber"
];
2021-06-15 15:06:16 +02:00
meta = with lib; {
description = "Python library to communicate with Tibber";
2021-06-15 15:06:16 +02:00
homepage = "https://github.com/Danielhiversen/pyTibber";
changelog = "https://github.com/Danielhiversen/pyTibber/releases/tag/${version}";
2021-06-15 15:06:16 +02:00
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}