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