diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/openrouteservice/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/openrouteservice/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/openrouteservice/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/openrouteservice/default.nix new file mode 100644 index 000000000000..c35405f417b2 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/openrouteservice/default.nix @@ -0,0 +1,29 @@ +{ lib, buildPythonPackage, fetchFromGitHub, requests, responses, pytestCheckHook }: + +buildPythonPackage rec { + pname = "openrouteservice"; + version = "2.3.0"; + + src = fetchFromGitHub { + owner = "GIScience"; + repo = "${pname}-py"; + rev = "v${version}"; + sha256 = "ySXzOQI9NcF1W/otbL7i3AY628/74ZkJjDMQ9ywVEPc="; + }; + + 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 ]; + }; +} |