2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, aio-geojson-client
|
|
|
|
, aiohttp
|
2024-02-07 01:22:34 +00:00
|
|
|
, aioresponses
|
2022-07-14 12:49:19 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytz
|
|
|
|
, pythonOlder
|
2024-02-07 01:22:34 +00:00
|
|
|
, setuptools
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aio-geojson-usgs-earthquakes";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.3";
|
|
|
|
pyproject = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "exxamalte";
|
|
|
|
repo = "python-aio-geojson-usgs-earthquakes";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-Q9vBy5R5N5ihJdSMALo88qVYcFVs2/33lYRPdLej4S8=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aio-geojson-client
|
|
|
|
aiohttp
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-02-16 17:41:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2024-02-07 01:22:34 +00:00
|
|
|
aioresponses
|
2022-07-14 12:49:19 +00:00
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aio_geojson_usgs_earthquakes"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for accessing the U.S. Geological Survey Earthquake Hazards Program feeds";
|
|
|
|
homepage = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes/blob/v${version}/CHANGELOG.md";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|