2021-10-01 09:20:50 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
2022-02-20 05:27:41 +00:00
|
|
|
, pythonOlder
|
2021-10-01 09:20:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wazeroutecalculator";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.15";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "WazeRouteCalculator";
|
|
|
|
inherit version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-DB5oWthWNwamFG3kNxA/kmUBOVogoSg5LI2KrI39s4M=";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# there are no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"WazeRouteCalculator"
|
|
|
|
];
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Calculate actual route time and distance with Waze API";
|
|
|
|
homepage = "https://github.com/kovacsbalu/WazeRouteCalculator";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|