about summary refs log tree commit diff
path: root/pkgs/development/python-modules/openrouteservice
diff options
context:
space:
mode:
authorScriptkiddi <fritz@otlinghaus.it>2020-10-08 12:55:29 +0200
committerScriptkiddi <fritz@otlinghaus.it>2020-10-08 12:55:29 +0200
commitb1073f27d9a9370c2c5e40a2e11144130f08624d (patch)
tree235ac818752b2709e5a6634be47e5605a67eef50 /pkgs/development/python-modules/openrouteservice
parentafa12b1128d5f4d21bb9916132b0666bc1a1014d (diff)
pythonPackage.openrouteservice: init at 2.3.0
Diffstat (limited to 'pkgs/development/python-modules/openrouteservice')
-rw-r--r--pkgs/development/python-modules/openrouteservice/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/openrouteservice/default.nix b/pkgs/development/python-modules/openrouteservice/default.nix
new file mode 100644
index 0000000000000..c35405f417b22
--- /dev/null
+++ b/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 ];
+  };
+}