1{ lib
2, aiohttp
3, aresponses
4, buildPythonPackage
5, certifi
6, fetchFromGitHub
7, poetry-core
8, pytest-asyncio
9, pytest-aiohttp
10, pytestCheckHook
11, pythonOlder
12, ujson
13, yarl
14}:
15
16buildPythonPackage rec {
17 pname = "pyoutbreaksnearme";
18 version = "2023.10.0";
19 pyproject = true;
20
21 disabled = pythonOlder "3.10";
22
23 src = fetchFromGitHub {
24 owner = "bachya";
25 repo = "pyoutbreaksnearme";
26 rev = "refs/tags/${version}";
27 hash = "sha256-G+/ooNhiYOaV0kjfr8Z1d31XxRYFArQnt1oIuMQfXdY=";
28 };
29
30 nativeBuildInputs = [
31 poetry-core
32 ];
33
34 propagatedBuildInputs = [
35 aiohttp
36 certifi
37 ujson
38 yarl
39 ];
40
41 __darwinAllowLocalNetworking = true;
42
43 nativeCheckInputs = [
44 aresponses
45 pytest-asyncio
46 pytest-aiohttp
47 pytestCheckHook
48 ];
49
50 disabledTestPaths = [
51 # Ignore the examples directory as the files are prefixed with test_.
52 "examples/"
53 ];
54
55 pythonImportsCheck = [
56 "pyoutbreaksnearme"
57 ];
58
59 meta = with lib; {
60 description = "Library for retrieving data from for Outbreaks Near Me";
61 homepage = "https://github.com/bachya/pyoutbreaksnearme";
62 changelog = "https://github.com/bachya/pyoutbreaksnearme/releases/tag/${version}";
63 license = with licenses; [ mit ];
64 maintainers = with maintainers; [ fab ];
65 };
66}