2020-10-08 11:55:29 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, requests, responses, pytestCheckHook }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openrouteservice";
|
2021-02-11 07:14:14 +00:00
|
|
|
version = "2.3.3";
|
2020-10-08 11:55:29 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GIScience";
|
|
|
|
repo = "${pname}-py";
|
|
|
|
rev = "v${version}";
|
2021-02-11 07:14:14 +00:00
|
|
|
sha256 = "1d5qbygb81fhpwfdm1a118r3xv45xz9n9avfkgxkvw1n8y6ywz2q";
|
2020-10-08 11:55:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ 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 ];
|
|
|
|
};
|
|
|
|
}
|