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