Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / nibe / default.nix
blobd065f93ade21f2f0076116eb8c815b128f13dedc
1 { lib
2 , aiohttp
3 , aresponses
4 , async-modbus
5 , async-timeout
6 , asyncclick
7 , buildPythonPackage
8 , construct
9 , exceptiongroup
10 , fetchFromGitHub
11 , pandas
12 , pytest-asyncio
13 , pytestCheckHook
14 , python-slugify
15 , pythonOlder
16 , setuptools
17 , tenacity
20 buildPythonPackage rec {
21   pname = "nibe";
22   version = "2.9.0";
23   pyproject = true;
25   disabled = pythonOlder "3.9";
27   src = fetchFromGitHub {
28     owner = "yozik04";
29     repo = "nibe";
30     rev = "refs/tags/${version}";
31     hash = "sha256-j8P/lhBjlsmnOc4Cv/a2Hdf2EPO8CEpT4IOQHtiBgQA=";
32   };
34   nativeBuildInputs = [
35     setuptools
36   ];
38   propagatedBuildInputs = [
39     async-modbus
40     async-timeout
41     construct
42     exceptiongroup
43     tenacity
44   ];
46   passthru.optional-dependencies = {
47     convert = [
48       pandas
49       python-slugify
50     ];
51     cli = [
52       asyncclick
53     ];
54   };
56   nativeCheckInputs = [
57     aresponses
58     pytest-asyncio
59     pytestCheckHook
60   ];
62   pythonImportsCheck = [
63     "nibe"
64   ];
66   meta = with lib; {
67     description = "Library for the communication with Nibe heatpumps";
68     homepage = "https://github.com/yozik04/nibe";
69     changelog = "https://github.com/yozik04/nibe/releases/tag/${version}";
70     license = with licenses; [ gpl3Plus ];
71     maintainers = with maintainers; [ fab ];
72   };