1{ lib
2, buildPythonPackage
3, fetchPypi
4, requests
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "wazeroutecalculator";
10 version = "0.15";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 pname = "WazeRouteCalculator";
17 inherit version;
18 hash = "sha256-DB5oWthWNwamFG3kNxA/kmUBOVogoSg5LI2KrI39s4M=";
19 };
20
21 propagatedBuildInputs = [
22 requests
23 ];
24
25 # there are no tests
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "WazeRouteCalculator"
30 ];
31
32 meta = with lib; {
33 description = "Calculate actual route time and distance with Waze API";
34 homepage = "https://github.com/kovacsbalu/WazeRouteCalculator";
35 license = licenses.gpl3Only;
36 maintainers = with maintainers; [ peterhoeg ];
37 };
38}