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