at master 950 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 httpx, 7 pytest-asyncio, 8 pytest-cov-stub, 9 pytestCheckHook, 10 pythonOlder, 11 respx, 12}: 13 14buildPythonPackage rec { 15 pname = "pywaze"; 16 version = "1.1.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.11"; 20 21 src = fetchFromGitHub { 22 owner = "eifinger"; 23 repo = "pywaze"; 24 tag = "v${version}"; 25 hash = "sha256-XE+VdxUjq8KBSIU6rUlBweKEkZD3gqJuy9J4u9JVy7Q="; 26 }; 27 28 build-system = [ hatchling ]; 29 30 dependencies = [ httpx ]; 31 32 nativeCheckInputs = [ 33 pytest-asyncio 34 pytest-cov-stub 35 pytestCheckHook 36 respx 37 ]; 38 39 pythonImportsCheck = [ "pywaze" ]; 40 41 meta = with lib; { 42 description = "Module for calculating WAZE routes and travel times"; 43 homepage = "https://github.com/eifinger/pywaze"; 44 changelog = "https://github.com/eifinger/pywaze/releases/tag/v${version}"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}