1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 responses,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "openrouteservice";
11 version = "2.3.3";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "GIScience";
16 repo = "${pname}-py";
17 rev = "v${version}";
18 sha256 = "1d5qbygb81fhpwfdm1a118r3xv45xz9n9avfkgxkvw1n8y6ywz2q";
19 };
20
21 nativeCheckInputs = [
22 pytestCheckHook
23 responses
24 ];
25
26 disabledTests = [
27 # touches network
28 "test_optimized_waypoints"
29 "test_invalid_api_key"
30 "test_raise_timeout_retriable_requests"
31 ];
32
33 meta = with lib; {
34 homepage = "https://github.com/GIScience/openrouteservice-py";
35 description = "Python API to consume openrouteservice(s) painlessly";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ Scriptkiddi ];
38 };
39}