depot/third_party/nixpkgs/pkgs/development/python-modules/aio-geojson-geonetnz-volcano/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

61 lines
1.2 KiB
Nix

{ lib
, aio-geojson-client
, aiohttp
, aioresponses
, mock
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-xdist
, pytestCheckHook
, pytz
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "aio-geojson-geonetnz-volcano";
version = "0.9";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-aio-geojson-geonetnz-volcano";
rev = "refs/tags/v${version}";
hash = "sha256-ZmGDO9EROFMlxdj5txNh719M+3l/0jRFbB2h2AyZAdI=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aio-geojson-client
aiohttp
pytz
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
aioresponses
mock
pytest-asyncio
pytest-xdist
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/python-aio-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 ];
};
}