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