From e8536675c986d6e27df751e6ef308885925e9b16 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Nov 2022 13:46:01 +0100 Subject: [PATCH] python310Packages.nibe: init at 1.2.1 --- .../python-modules/nibe/default.nix | 57 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 59 insertions(+) create mode 100644 pkgs/development/python-modules/nibe/default.nix diff --git a/pkgs/development/python-modules/nibe/default.nix b/pkgs/development/python-modules/nibe/default.nix new file mode 100644 index 000000000000..4a3ce21b82a7 --- /dev/null +++ b/pkgs/development/python-modules/nibe/default.nix @@ -0,0 +1,57 @@ +{ lib +, aiohttp +, aresponses +, async-modbus +, async-timeout +, buildPythonPackage +, construct +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +, pythonOlder +, setuptools +, tenacity +}: + +buildPythonPackage rec { + pname = "nibe"; + version = "1.2.1"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "yozik04"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-y1/yZE5Gfj2XPscZ27TNXOM/VGy/iIFkvg2TCNsh4tI="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + async-modbus + async-timeout + construct + tenacity + ]; + + checkInputs = [ + aresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "nibe" + ]; + + meta = with lib; { + description = "Library for the communication with Nibe heatpumps"; + homepage = "https://github.com/yozik04/nibe"; + license = with licenses; [ gpl3Plus ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9838f18bbcb7..6b1c53d1e4be 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6137,6 +6137,8 @@ self: super: with self; { nibabel = callPackage ../development/python-modules/nibabel { }; + nibe = callPackage ../development/python-modules/nibe { }; + nidaqmx = callPackage ../development/python-modules/nidaqmx { }; Nikola = callPackage ../development/python-modules/Nikola { };