python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / pytibber / default.nix
blobef4eeecbb3eb841c32ceabae93ada9a7e5604fc6
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   gql,
7   pytest-asyncio,
8   pytestCheckHook,
9   pythonOlder,
10   setuptools,
13 buildPythonPackage rec {
14   pname = "pytibber";
15   version = "0.30.8";
16   pyproject = true;
18   disabled = pythonOlder "3.11";
20   src = fetchFromGitHub {
21     owner = "Danielhiversen";
22     repo = "pyTibber";
23     tag = version;
24     hash = "sha256-lUxID4D9wxKvDF3epEznTof9lHYKFniTDYv7/gvW7Z4=";
25   };
27   build-system = [ setuptools ];
29   dependencies = [
30     aiohttp
31     gql
32   ] ++ gql.optional-dependencies.websockets;
34   nativeCheckInputs = [
35     pytest-asyncio
36     pytestCheckHook
37   ];
39   pytestFlagsArray = [ "test/test.py" ];
41   # Tests access network
42   doCheck = false;
44   pythonImportsCheck = [ "tibber" ];
46   meta = with lib; {
47     description = "Python library to communicate with Tibber";
48     homepage = "https://github.com/Danielhiversen/pyTibber";
49     changelog = "https://github.com/Danielhiversen/pyTibber/releases/tag/${version}";
50     license = licenses.mit;
51     maintainers = with maintainers; [ dotlambda ];
52   };