diff --git a/pkgs/development/python-modules/ambiclimate/default.nix b/pkgs/development/python-modules/ambiclimate/default.nix new file mode 100644 index 000000000000..e375d347f2aa --- /dev/null +++ b/pkgs/development/python-modules/ambiclimate/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchPypi +, aiohttp +, async-timeout +}: + +buildPythonPackage rec { + pname = "ambiclimate"; + version = "0.2.1"; + + src = fetchPypi { + pname = "Ambiclimate"; + inherit version; + sha256 = "0vhmpazc2n7qyyh7wqsz635w0f8afk2i5d592ikb84bgnfn83483"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + ]; + + # tests are not present + doCheck = false; + + pythonImportsCheck = [ "ambiclimate" ]; + + meta = with lib; { + description = "Python library to communicate with ambiclimate"; + homepage = "https://github.com/Danielhiversen/pyAmbiclimate"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index d26b1dedd88e..766de5ac3542 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -25,7 +25,7 @@ "almond" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pyalmond "alpha_vantage" = ps: with ps; [ ]; # missing inputs: alpha_vantage "amazon_polly" = ps: with ps; [ boto3 ]; - "ambiclimate" = ps: with ps; [ aiohttp-cors ]; # missing inputs: ambiclimate + "ambiclimate" = ps: with ps; [ aiohttp-cors ambiclimate ]; "ambient_station" = ps: with ps; [ ]; # missing inputs: aioambient "amcrest" = ps: with ps; [ ha-ffmpeg ]; # missing inputs: amcrest "ampio" = ps: with ps; [ ]; # missing inputs: asmog diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a53b50146fec..e667809c368c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -283,6 +283,8 @@ in { amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { }; + ambiclimate = callPackage ../development/python-modules/ambiclimate { }; + amply = callPackage ../development/python-modules/amply { }; amqp = callPackage ../development/python-modules/amqp { };