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