567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
40 lines
829 B
Nix
40 lines
829 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
responses,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openrouteservice";
|
|
version = "2.3.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GIScience";
|
|
repo = "${pname}-py";
|
|
rev = "v${version}";
|
|
sha256 = "1d5qbygb81fhpwfdm1a118r3xv45xz9n9avfkgxkvw1n8y6ywz2q";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
disabledTests = [
|
|
# touches network
|
|
"test_optimized_waypoints"
|
|
"test_invalid_api_key"
|
|
"test_raise_timeout_retriable_requests"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/GIScience/openrouteservice-py";
|
|
description = "Python API to consume openrouteservice(s) painlessly";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|