53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib
|
|
, aio-geojson-client
|
|
, aiohttp
|
|
, aresponses
|
|
, mock
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pytz
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aio-geojson-geonetnz-volcano";
|
|
version = "0.8";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "exxamalte";
|
|
repo = "python-aio-geojson-geonetnz-volcano";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-wJVFjy6QgYb6GX9pZTylYFvCRWmD2lAFZKnodsa8Yqo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aio-geojson-client
|
|
aiohttp
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aio_geojson_geonetnz_volcano"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for accessing the GeoNet NZ Volcanic GeoJSON feeds";
|
|
homepage = "https://github.com/exxamalte/pythonaio-geojson-geonetnz-volcano";
|
|
changelog = "https://github.com/exxamalte/python-aio-geojson-geonetnz-volcano/blob/v${version}/CHANGELOG.md";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|