Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aioridwell / default.nix
blobc5b1c9bb70fa0e2fd7a51db549478d628596a32d
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
18 buildPythonPackage rec {
19   pname = "aioridwell";
20   version = "2023.10.0";
21   format = "pyproject";
23   disabled = pythonOlder "3.8";
25   src = fetchFromGitHub {
26     owner = "bachya";
27     repo = pname;
28     rev = "refs/tags/${version}";
29     hash = "sha256-psynooRbX34EFYY7FTqy3KdFsv939z/qYfIfyNTVkiM=";
30   };
32   nativeBuildInputs = [
33     poetry-core
34   ];
36   propagatedBuildInputs = [
37     aiohttp
38     pyjwt
39     pytz
40     titlecase
41   ];
43   __darwinAllowLocalNetworking = true;
45   nativeCheckInputs = [
46     aresponses
47     freezegun
48     pytest-aiohttp
49     pytest-asyncio
50     pytestCheckHook
51     types-pytz
52   ];
54   disabledTests = [
55     # AssertionError: assert datetime.date(...
56     "test_get_next_pickup_event"
57   ];
59   disabledTestPaths = [
60     # Ignore the examples directory as the files are prefixed with test_
61     "examples/"
62   ];
64   pythonImportsCheck = [
65     "aioridwell"
66   ];
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   };