1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, geojson
5, haversine
6, pytz
7, requests
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "geojson-client";
13 version = "0.5";
14
15 src = fetchFromGitHub {
16 owner = "exxamalte";
17 repo = "python-geojson-client";
18 rev = "v${version}";
19 sha256 = "1cc6ymbn45dv7xdl1r8bbizlmsdbxjmsfza442yxmmm19nxnnqjv";
20 };
21
22 propagatedBuildInputs = [
23 geojson
24 haversine
25 pytz
26 requests
27 ];
28
29 checkInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "geojson_client" ];
32
33 meta = with lib; {
34 description = "Python module for convenient access to GeoJSON feeds";
35 homepage = "https://github.com/exxamalte/python-geojson-client";
36 license = with licenses; [ asl20 ];
37 maintainers = with maintainers; [ fab ];
38 };
39}