git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.opensensemap-api: init at 0.1.5
commit8f48d8850620f0505e336f0ea7eb813039ffee18 authorFabian Affolter <mail@fabian-affolter.ch> dateFri 1 Jan 2021, 22:39 (6 years ago) parentd4a76b1
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
@@ -4359,6 +4359,8 @@ in {
43594359
43604360 openrouteservice = callPackage ../development/python-modules/openrouteservice/default.nix { };
43614361
4362+ opensensemap-api = callPackage ../development/python-modules/opensensemap-api { };
4363+
43624364 opentimestamps = callPackage ../development/python-modules/opentimestamps { };
43634365
43644366 opentracing = callPackage ../development/python-modules/opentracing { };