54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, aio-geojson-client
|
|
, aiohttp
|
|
, aresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pytz
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aio-geojson-usgs-earthquakes";
|
|
version = "0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "exxamalte";
|
|
repo = "python-aio-geojson-usgs-earthquakes";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ET8wcOep4tSZJXyL+XvfW2j9eKp6LrBk/g18ZlgLIzc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aio-geojson-client
|
|
aiohttp
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
checkInputs = [
|
|
aresponses
|
|
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";
|
|
changelog = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes/blob/v${version}/CHANGELOG.md";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|