depot/third_party/nixpkgs/pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

57 lines
1.2 KiB
Nix

{ lib
, aio-geojson-client
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pytz
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "aio-geojson-geonetnz-quakes";
version = "0.16";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-aio-geojson-geonetnz-quakes";
rev = "refs/tags/v${version}";
hash = "sha256-8OpmA3yHjUY+N5Obri4RWeuJiW916xGSWUYUgdpmjkw=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aio-geojson-client
aiohttp
pytz
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"aio_geojson_geonetnz_quakes"
];
meta = with lib; {
description = "Python module for accessing the GeoNet NZ Quakes GeoJSON feeds";
homepage = "https://github.com/exxamalte/python-aio-geojson-geonetnz-quakes";
changelog = "https://github.com/exxamalte/python-aio-geojson-geonetnz-quakes/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}