2021-01-01 22:39:59 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
2021-11-23 09:51:18 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2021-01-01 22:39:59 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opensensemap-api";
|
2021-11-23 09:51:18 +01:00
|
|
|
version = "0.2.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-01-01 22:39:59 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-23 09:51:18 +01:00
|
|
|
sha256 = "sha256-KSukSPpSbfbEEqTq4zqqo8OT7ptdPrGy2QyQYjErQWI=";
|
2021-01-01 22:39:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests are present
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-11-23 09:51:18 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"opensensemap_api"
|
|
|
|
];
|
2021-01-01 22:39:59 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|