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