depot/third_party/nixpkgs/pkgs/development/python-modules/openrouteservice/default.nix
Default email 727493fff0 Project import generated by Copybara.
GitOrigin-RevId: b839d4a8557adc80e522f674529e586ab2a88d23
2020-11-09 16:59:12 +01:00

29 lines
785 B
Nix

{ 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 ];
};
}