52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
aio-geojson-client,
|
|
aiohttp,
|
|
aiointercept,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pytz,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "aio-geojson-usgs-earthquakes";
|
|
version = "2026.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "exxamalte";
|
|
repo = "python-aio-geojson-usgs-earthquakes";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Faz4411UuPE1L/FWcn41l2ZiFVn0s4Pp2YgYhznEzqg=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aio-geojson-client
|
|
aiohttp
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aiointercept
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aio_geojson_usgs_earthquakes" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Module for accessing the U.S. Geological Survey Earthquake Hazards Program feeds";
|
|
homepage = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes";
|
|
changelog = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|