git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108171 from fabaff/opensensemap-api

python3Packages.opensensemap-api: init at 0.1.5

commit2411148dd076b14959a8d26c2c8e317db91929e5 authorSandro <sandro.jaeckel@gmail.com> dateSat 2 Jan 2021, 01:41 (6 years ago) parent014440d8f48d88
3 files changed+40−1
pkgs/development/python-modules/opensensemap-api/default.nix+37 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/opensensemap-api/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, aiohttp
5+, async-timeout
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "opensensemap-api";
10+ version = "0.1.5";
11+
12+ src = fetchPypi {
13+ inherit pname version;
14+ sha256 = "1f3iqwl8ynvrkdd961v2hjsbldwbr217pv5pay2m5f0m974bhblx";
15+ };
16+
17+ propagatedBuildInputs = [
18+ aiohttp
19+ async-timeout
20+ ];
21+
22+ # no tests are present
23+ doCheck = false;
24+
25+ pythonImportsCheck = [ "opensensemap_api" ];
26+
27+ meta = with lib; {
28+ description = "OpenSenseMap API Python client";
29+ longDescription = ''
30+ Python Client for interacting with the openSenseMap API. All
31+ available information from the sensor can be retrieved.
32+ '';
33+ homepage = "https://github.com/home-assistant-ecosystem/python-opensensemap-api";
34+ license = with licenses; [ mit ];
35+ maintainers = with maintainers; [ fab ];
36+ };
37+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -586,7 +586,7 @@
586586 "opengarage" = ps: with ps; [ ]; # missing inputs: open-garage
587587 "openhardwaremonitor" = ps: with ps; [ ];
588588 "openhome" = ps: with ps; [ ]; # missing inputs: openhomedevice
589− "opensensemap" = ps: with ps; [ ]; # missing inputs: opensensemap-api
589+ "opensensemap" = ps: with ps; [ opensensemap-api ];
590590 "opensky" = ps: with ps; [ ];
591591 "opentherm_gw" = ps: with ps; [ ]; # missing inputs: pyotgw
592592 "openuv" = ps: with ps; [ ]; # missing inputs: pyopenuv
pkgs/top-level/python-packages.nix+2
@@ -4363,6 +4363,8 @@ in {
43634363
43644364 openrouteservice = callPackage ../development/python-modules/openrouteservice/default.nix { };
43654365
4366+ opensensemap-api = callPackage ../development/python-modules/opensensemap-api { };
4367+
43664368 opentimestamps = callPackage ../development/python-modules/opentimestamps { };
43674369
43684370 opentracing = callPackage ../development/python-modules/opentracing { };