diff --git a/pkgs/development/python-modules/tellcore-py/default.nix b/pkgs/development/python-modules/tellcore-py/default.nix new file mode 100644 index 000000000000..968c3d56e51a --- /dev/null +++ b/pkgs/development/python-modules/tellcore-py/default.nix @@ -0,0 +1,34 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "tellcore-py"; + version = "1.1.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "erijo"; + repo = "tellcore-py"; + tag = "v${version}"; + hash = "sha256-AcdYMzd3Ln65PZ+weSxyR+CwXmdi2A+wSE6B/4hepE0="; + }; + + build-system = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "tellcore" ]; + + meta = { + description = "Python wrapper for Telldus' home automation library"; + homepage = "https://github.com/erijo/tellcore-py"; + changelog = "https://github.com/erijo/tellcore-py/releases/tag/v${version}"; + license = lib.licenses.gpl3Plus; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 09a2c7a229a3..6c916ba09ced 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17909,6 +17909,8 @@ self: super: with self; { tellcore-net = callPackage ../development/python-modules/tellcore-net { }; + tellcore-py = callPackage ../development/python-modules/tellcore-py { }; + tellduslive = callPackage ../development/python-modules/tellduslive { }; temescal = callPackage ../development/python-modules/temescal { };