diff --git a/pkgs/development/python-modules/pyblu/default.nix b/pkgs/development/python-modules/pyblu/default.nix new file mode 100644 index 000000000000..14b6c1d10de6 --- /dev/null +++ b/pkgs/development/python-modules/pyblu/default.nix @@ -0,0 +1,39 @@ +{ + aiohttp, + buildPythonPackage, + fetchPypi, + lib, + poetry-core, + xmltodict, +}: + +buildPythonPackage rec { + pname = "pyblu"; + version = "0.4.0"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-qMbwrRD7ZUsHHOLF9yPvAxiTmJ8vJX1cyHX+4ONtsQ8="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + aiohttp + xmltodict + ]; + + pythonImportsCheck = [ "pyblu" ]; + + # no tests on PyPI, no tags on GitHub + # https://github.com/LouisChrist/pyblu/issues/19 + doCheck = false; + + meta = { + description = "BluOS API client"; + homepage = "https://github.com/LouisChrist/pyblu"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0bb039f2e9f3..9999d60ef224 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11064,6 +11064,8 @@ self: super: with self; { pybloom-live = callPackage ../development/python-modules/pybloom-live { }; + pyblu = callPackage ../development/python-modules/pyblu { }; + pybluez = callPackage ../development/python-modules/pybluez { inherit (pkgs) bluez; };