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