2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opensensemap-api";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "0.1.6";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-e60aVIoKFqo++WJHUYGutugkjB8YgyNQgJbILgAyOOY=";
|
2021-01-05 17:05:55 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|