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