1{ lib
2, aiohttp
3, aresponses
4, buildPythonPackage
5, fetchFromGitHub
6, freezegun
7, poetry-core
8, pyjwt
9, pytest-aiohttp
10, pytest-asyncio
11, pytestCheckHook
12, pythonOlder
13, pytz
14, titlecase
15, types-pytz
16}:
17
18buildPythonPackage rec {
19 pname = "aioridwell";
20 version = "2023.10.0";
21 format = "pyproject";
22
23 disabled = pythonOlder "3.8";
24
25 src = fetchFromGitHub {
26 owner = "bachya";
27 repo = pname;
28 rev = "refs/tags/${version}";
29 hash = "sha256-psynooRbX34EFYY7FTqy3KdFsv939z/qYfIfyNTVkiM=";
30 };
31
32 nativeBuildInputs = [
33 poetry-core
34 ];
35
36 propagatedBuildInputs = [
37 aiohttp
38 pyjwt
39 pytz
40 titlecase
41 ];
42
43 __darwinAllowLocalNetworking = true;
44
45 nativeCheckInputs = [
46 aresponses
47 freezegun
48 pytest-aiohttp
49 pytest-asyncio
50 pytestCheckHook
51 types-pytz
52 ];
53
54 disabledTests = [
55 # AssertionError: assert datetime.date(...
56 "test_get_next_pickup_event"
57 ];
58
59 disabledTestPaths = [
60 # Ignore the examples directory as the files are prefixed with test_
61 "examples/"
62 ];
63
64 pythonImportsCheck = [
65 "aioridwell"
66 ];
67
68 meta = with lib; {
69 description = "Python library for interacting with Ridwell waste recycling";
70 homepage = "https://github.com/bachya/aioridwell";
71 changelog = "https://github.com/bachya/aioridwell/releases/tag/${version}";
72 license = with licenses; [ mit ];
73 maintainers = with maintainers; [ fab ];
74 };
75}