git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108233 from fabaff/ambiclimate

python3Packages.ambiclimate: init at 0.2.1

commitd47eae33b0c01add740007f5cf83f3faeb0dc12d authorMartin Weinelt <mweinelt@users.noreply.github.com> dateSat 2 Jan 2021, 17:48 (6 years ago) parentc16929aebf4ede
3 files changed+37−1
pkgs/development/python-modules/ambiclimate/default.nix+34 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/ambiclimate/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, aiohttp
5+, async-timeout
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "ambiclimate";
10+ version = "0.2.1";
11+
12+ src = fetchPypi {
13+ pname = "Ambiclimate";
14+ inherit version;
15+ sha256 = "0vhmpazc2n7qyyh7wqsz635w0f8afk2i5d592ikb84bgnfn83483";
16+ };
17+
18+ propagatedBuildInputs = [
19+ aiohttp
20+ async-timeout
21+ ];
22+
23+ # tests are not present
24+ doCheck = false;
25+
26+ pythonImportsCheck = [ "ambiclimate" ];
27+
28+ meta = with lib; {
29+ description = "Python library to communicate with ambiclimate";
30+ homepage = "https://github.com/Danielhiversen/pyAmbiclimate";
31+ license = with licenses; [ mit ];
32+ maintainers = with maintainers; [ fab ];
33+ };
34+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -25,7 +25,7 @@
2525 "almond" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pyalmond
2626 "alpha_vantage" = ps: with ps; [ ]; # missing inputs: alpha_vantage
2727 "amazon_polly" = ps: with ps; [ boto3 ];
28− "ambiclimate" = ps: with ps; [ aiohttp-cors ]; # missing inputs: ambiclimate
28+ "ambiclimate" = ps: with ps; [ aiohttp-cors ambiclimate ];
2929 "ambient_station" = ps: with ps; [ ]; # missing inputs: aioambient
3030 "amcrest" = ps: with ps; [ ha-ffmpeg ]; # missing inputs: amcrest
3131 "ampio" = ps: with ps; [ ]; # missing inputs: asmog
pkgs/top-level/python-packages.nix+2
@@ -283,6 +283,8 @@ in {
283283
284284 amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { };
285285
286+ ambiclimate = callPackage ../development/python-modules/ambiclimate { };
287+
286288 amply = callPackage ../development/python-modules/amply { };
287289
288290 amqp = callPackage ../development/python-modules/amqp { };