2021-06-05 23:18:02 +01:00
|
|
|
{ lib
|
|
|
|
, aio-geojson-client
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytz
|
2022-02-18 21:45:10 +00:00
|
|
|
, pythonOlder
|
2021-06-05 23:18:02 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aio-geojson-geonetnz-volcano";
|
2022-02-18 21:45:10 +00:00
|
|
|
version = "0.7";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-05 23:18:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "exxamalte";
|
|
|
|
repo = "python-aio-geojson-geonetnz-volcano";
|
|
|
|
rev = "v${version}";
|
2022-02-18 21:45:10 +00:00
|
|
|
sha256 = "sha256-2iVUHMk4ydmGmmGS6lJV5pvxJHyP9bRSeh/dOXbquE0=";
|
2021-06-05 23:18:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aio-geojson-client
|
|
|
|
aiohttp
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aresponses
|
|
|
|
asynctest
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-02-18 21:45:10 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aio_geojson_geonetnz_volcano"
|
|
|
|
];
|
2021-06-05 23:18:02 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for accessing the GeoNet NZ Volcanic GeoJSON feeds";
|
|
|
|
homepage = "https://github.com/exxamalte/pythonaio-geojson-geonetnz-volcano";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|