1{ lib
2, aiohttp
3, aresponses
4, buildPythonPackage
5, fetchFromGitHub
6, poetry-core
7, pytest-aiohttp
8, pytest-asyncio
9, pytestCheckHook
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "pytile";
15 version = "2022.10.0";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "bachya";
22 repo = pname;
23 rev = version;
24 sha256 = "sha256-fxtDqbslUyV/Otwy9MPIC8DSepTnEZiJKzeU8nlsnWI=";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 ];
30
31 propagatedBuildInputs = [
32 aiohttp
33 ];
34
35 checkInputs = [
36 aresponses
37 pytest-aiohttp
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 disabledTestPaths = [
43 # Ignore the examples as they are prefixed with test_
44 "examples/"
45 ];
46
47 pythonImportsCheck = [
48 "pytile"
49 ];
50
51 __darwinAllowLocalNetworking = true;
52
53 meta = with lib; {
54 description = " Python API for Tile Bluetooth trackers";
55 longDescription = ''
56 pytile is a simple Python library for retrieving information on Tile
57 Bluetooth trackers (including last location and more).
58 '';
59 homepage = "https://github.com/bachya/pytile";
60 license = with licenses; [ mit ];
61 maintainers = with maintainers; [ fab ];
62 };
63}