ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pytibber / default.nix
blob4583c883904c94595b6031a5bdb8f882bc596ef7
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , aiohttp
6 , async-timeout
7 , graphql-subscription-manager
8 , python-dateutil
9 , pytest-asyncio
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "pytibber";
15   version = "0.25.6";
16   format = "setuptools";
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "Danielhiversen";
22     repo = "pyTibber";
23     rev = "refs/tags/${version}";
24     hash = "sha256-aGl43gxrnKwo3ZhN+EpSBMZw0wKWf5aIPFx3goo8Nog=";
25   };
27   propagatedBuildInputs = [
28     aiohttp
29     async-timeout
30     graphql-subscription-manager
31     python-dateutil
32   ];
34   checkInputs = [
35     pytest-asyncio
36     pytestCheckHook
37   ];
39   pytestFlagsArray = [
40     "test/test.py"
41   ];
43   # tests access network
44   doCheck = false;
46   pythonImportsCheck = [
47     "tibber"
48   ];
50   meta = with lib; {
51     description = "Python library to communicate with Tibber";
52     homepage = "https://github.com/Danielhiversen/pyTibber";
53     license = licenses.mit;
54     maintainers = with maintainers; [ dotlambda ];
55   };