1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00

Merge pull request #108171 from fabaff/opensensemap-api

python3Packages.opensensemap-api: init at 0.1.5
This commit is contained in:
Sandro 2021-01-02 01:41:08 +01:00 committed by GitHub
commit 2411148dd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, async-timeout
}:
buildPythonPackage rec {
pname = "opensensemap-api";
version = "0.1.5";
src = fetchPypi {
inherit pname version;
sha256 = "1f3iqwl8ynvrkdd961v2hjsbldwbr217pv5pay2m5f0m974bhblx";
};
propagatedBuildInputs = [
aiohttp
async-timeout
];
# no tests are present
doCheck = false;
pythonImportsCheck = [ "opensensemap_api" ];
meta = with lib; {
description = "OpenSenseMap API Python client";
longDescription = ''
Python Client for interacting with the openSenseMap API. All
available information from the sensor can be retrieved.
'';
homepage = "https://github.com/home-assistant-ecosystem/python-opensensemap-api";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -586,7 +586,7 @@
"opengarage" = ps: with ps; [ ]; # missing inputs: open-garage
"openhardwaremonitor" = ps: with ps; [ ];
"openhome" = ps: with ps; [ ]; # missing inputs: openhomedevice
"opensensemap" = ps: with ps; [ ]; # missing inputs: opensensemap-api
"opensensemap" = ps: with ps; [ opensensemap-api ];
"opensky" = ps: with ps; [ ];
"opentherm_gw" = ps: with ps; [ ]; # missing inputs: pyotgw
"openuv" = ps: with ps; [ ]; # missing inputs: pyopenuv

View file

@ -4363,6 +4363,8 @@ in {
openrouteservice = callPackage ../development/python-modules/openrouteservice/default.nix { };
opensensemap-api = callPackage ../development/python-modules/opensensemap-api { };
opentimestamps = callPackage ../development/python-modules/opentimestamps { };
opentracing = callPackage ../development/python-modules/opentracing { };