diff --git a/pkgs/development/python-modules/pymelcloud/default.nix b/pkgs/development/python-modules/pymelcloud/default.nix new file mode 100644 index 000000000000..2e28209081b5 --- /dev/null +++ b/pkgs/development/python-modules/pymelcloud/default.nix @@ -0,0 +1,45 @@ +{ lib +, aiohttp +, asynctest +, buildPythonPackage +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pymelcloud"; + version = "2.5.5"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "vilppuvuorinen"; + repo = pname; + rev = "v${version}"; + sha256 = "2bq/kCSCKUnm8QvEEbnWU85/xwgyLN0eG0v788EKzKk="; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + checkInputs = [ + asynctest + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pymelcloud" + ]; + + meta = with lib; { + description = "Python module for interacting with MELCloud"; + homepage = "https://github.com/vilppuvuorinen/pymelcloud"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fbcb8f33be74..62bc5cd47b93 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6960,6 +6960,8 @@ in { pymeeus = callPackage ../development/python-modules/pymeeus { }; + pymelcloud = callPackage ../development/python-modules/pymelcloud { }; + pymemcache = callPackage ../development/python-modules/pymemcache { }; pymemoize = callPackage ../development/python-modules/pymemoize { };