Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 httpx, 7 pytest-asyncio, 8 pytestCheckHook, 9 pythonOlder, 10 respx, 11}: 12 13buildPythonPackage rec { 14 pname = "pywaze"; 15 version = "1.0.2"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "eifinger"; 22 repo = "pywaze"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-fShfnfYhUtthwHSFYIFj2cWE9dZXakTrfqiR3AL2nb8="; 25 }; 26 27 postPatch = '' 28 substituteInPlace pyproject.toml \ 29 --replace-fail "--cov --cov-report term-missing --cov=src/pywaze " "" 30 ''; 31 32 build-system = [ hatchling ]; 33 34 dependencies = [ httpx ]; 35 36 nativeCheckInputs = [ 37 pytest-asyncio 38 pytestCheckHook 39 respx 40 ]; 41 42 pythonImportsCheck = [ "pywaze" ]; 43 44 meta = with lib; { 45 description = "Module for calculating WAZE routes and travel times"; 46 homepage = "https://github.com/eifinger/pywaze"; 47 changelog = "https://github.com/eifinger/pywaze/releases/tag/v${version}"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}