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