mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 11:33:31 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
40 lines
831 B
Nix
40 lines
831 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 = with lib; {
|
|
homepage = "https://github.com/GIScience/openrouteservice-py";
|
|
description = "Python API to consume openrouteservice(s) painlessly";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|