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