diff --git a/pkgs/development/python-modules/aionanoleaf/default.nix b/pkgs/development/python-modules/aionanoleaf/default.nix new file mode 100644 index 000000000000..96c0270566c1 --- /dev/null +++ b/pkgs/development/python-modules/aionanoleaf/default.nix @@ -0,0 +1,37 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "aionanoleaf"; + version = "0.0.2"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "milanmeu"; + repo = pname; + rev = "v${version}"; + sha256 = "1fmzmbsmfsa1ixxcz8vckg8qmsip8y7gih1j23jrlfbjm9s5jf5p"; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "aionanoleaf" ]; + + meta = with lib; { + description = "Python wrapper for the Nanoleaf API"; + homepage = "https://github.com/milanmeu/aionanoleaf"; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 648a94ff4211..b6dfb72db45e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -341,6 +341,8 @@ in { aiomysql = callPackage ../development/python-modules/aiomysql { }; + aionanoleaf = callPackage ../development/python-modules/aionanoleaf { }; + aionotify = callPackage ../development/python-modules/aionotify { }; aionotion = callPackage ../development/python-modules/aionotion { };