2022-04-17 17:01:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
2022-04-23 21:38:57 +00:00
|
|
|
, pytest-aiohttp
|
2022-04-17 17:01:45 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytomorrowio";
|
2022-04-23 21:38:57 +00:00
|
|
|
version = "0.3.3";
|
2022-04-17 17:01:45 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-23 21:38:57 +00:00
|
|
|
sha256 = "0d4f81dc90aefa26da18b927473cb7b08b093f7732301983ef5f0b1ca1181c62";
|
2022-04-17 17:01:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-04-23 21:38:57 +00:00
|
|
|
pytest-aiohttp
|
2022-04-17 17:01:45 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pytomorrowio" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Async Python package to access the Tomorrow.io API";
|
|
|
|
homepage = "https://github.com/raman325/pytomorrowio";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|