1{
2 lib,
3 aio-geojson-client,
4 aiohttp,
5 aioresponses,
6 mock,
7 buildPythonPackage,
8 fetchFromGitHub,
9 pytest-asyncio,
10 pytest-xdist,
11 pytestCheckHook,
12 pytz,
13 pythonOlder,
14 setuptools,
15}:
16
17buildPythonPackage rec {
18 pname = "aio-geojson-geonetnz-volcano";
19 version = "0.10";
20 pyproject = true;
21
22 disabled = pythonOlder "3.9";
23
24 src = fetchFromGitHub {
25 owner = "exxamalte";
26 repo = "python-aio-geojson-geonetnz-volcano";
27 tag = "v${version}";
28 hash = "sha256-B+jULYeel7efk7fB26zXQyS1ZCsmFVKlOkfnKWFQFJ4=";
29 };
30
31 build-system = [ setuptools ];
32
33 dependencies = [
34 aio-geojson-client
35 aiohttp
36 pytz
37 ];
38
39 nativeCheckInputs = [
40 aioresponses
41 mock
42 pytest-asyncio
43 pytest-xdist
44 pytestCheckHook
45 ];
46
47 pythonImportsCheck = [ "aio_geojson_geonetnz_volcano" ];
48
49 __darwinAllowLocalNetworking = true;
50
51 meta = with lib; {
52 description = "Python module for accessing the GeoNet NZ Volcanic GeoJSON feeds";
53 homepage = "https://github.com/exxamalte/python-aio-geojson-geonetnz-volcano";
54 changelog = "https://github.com/exxamalte/python-aio-geojson-geonetnz-volcano/blob/v${version}/CHANGELOG.md";
55 license = licenses.asl20;
56 maintainers = with maintainers; [ fab ];
57 };
58}