linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / development / python-modules / pyoutbreaksnearme / default.nix
blob45b6c10ace184c7cbb0315cff94fd83b3d8e1cb3
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,
17 buildPythonPackage rec {
18   pname = "pyoutbreaksnearme";
19   version = "2023.12.0";
20   pyproject = true;
22   disabled = pythonOlder "3.10";
24   src = fetchFromGitHub {
25     owner = "bachya";
26     repo = "pyoutbreaksnearme";
27     rev = "refs/tags/${version}";
28     hash = "sha256-oR/DApOxNSSczrBeH4sytd/vasbD4rA1poW4zNoeAnU=";
29   };
31   nativeBuildInputs = [ poetry-core ];
33   propagatedBuildInputs = [
34     aiohttp
35     certifi
36     ujson
37     yarl
38   ];
40   __darwinAllowLocalNetworking = true;
42   nativeCheckInputs = [
43     aresponses
44     pytest-asyncio
45     pytest-aiohttp
46     pytestCheckHook
47   ];
49   disabledTestPaths = [
50     # Ignore the examples directory as the files are prefixed with test_.
51     "examples/"
52   ];
54   pythonImportsCheck = [ "pyoutbreaksnearme" ];
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   };