2021-01-01 22:39:59 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opensensemap-api";
|
2021-03-20 22:29:07 +01:00
|
|
|
version = "0.1.6";
|
2021-01-01 22:39:59 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-20 22:29:07 +01:00
|
|
|
sha256 = "sha256-e60aVIoKFqo++WJHUYGutugkjB8YgyNQgJbILgAyOOY=";
|
2021-01-01 22:39:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|