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