about summary refs log tree commit diff
path: root/pkgs/development/python-modules/openrouteservice/default.nix
blob: ff279f3e3f2830d585cfbd5d03d2347770308164 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  responses,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "openrouteservice";
  version = "2.3.3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "GIScience";
    repo = "${pname}-py";
    rev = "v${version}";
    sha256 = "1d5qbygb81fhpwfdm1a118r3xv45xz9n9avfkgxkvw1n8y6ywz2q";
  };

  nativeCheckInputs = [
    pytestCheckHook
    responses
  ];

  disabledTests = [
    # touches network
    "test_optimized_waypoints"
    "test_invalid_api_key"
    "test_raise_timeout_retriable_requests"
  ];

  meta = with lib; {
    homepage = "https://github.com/GIScience/openrouteservice-py";
    description = "The Python API to consume openrouteservice(s) painlessly";
    license = licenses.asl20;
    maintainers = with maintainers; [ Scriptkiddi ];
  };
}