1{
2 lib,
3 buildPythonPackage,
4 aiohttp,
5 aresponses,
6 backoff,
7 certifi,
8 fetchFromGitHub,
9 poetry-core,
10 pytest-aiohttp,
11 pytest-asyncio,
12 pytestCheckHook,
13 pythonOlder,
14 yarl,
15}:
16
17buildPythonPackage rec {
18 pname = "pyiqvia";
19 version = "2023.12.0";
20 format = "pyproject";
21
22 disabled = pythonOlder "3.9";
23
24 src = fetchFromGitHub {
25 owner = "bachya";
26 repo = "pyiqvia";
27 tag = version;
28 hash = "sha256-qq6UQUz60WkmWqdmExlSQT3wapaHJr8DeH1eVrTOnpQ=";
29 };
30
31 nativeBuildInputs = [ poetry-core ];
32
33 propagatedBuildInputs = [
34 aiohttp
35 backoff
36 certifi
37 yarl
38 ];
39
40 __darwinAllowLocalNetworking = true;
41
42 nativeCheckInputs = [
43 aresponses
44 pytest-aiohttp
45 pytest-asyncio
46 pytestCheckHook
47 ];
48
49 disabledTestPaths = [
50 # Ignore the examples as they are prefixed with test_
51 "examples/"
52 ];
53
54 pythonImportsCheck = [ "pyiqvia" ];
55
56 meta = with lib; {
57 description = "Module for working with IQVIA data";
58 longDescription = ''
59 pyiqvia is an async-focused Python library for allergen, asthma, and
60 disease data from the IQVIA family of websites (such as https://pollen.com,
61 https://flustar.com and more).
62 '';
63 homepage = "https://github.com/bachya/pyiqvia";
64 changelog = "https://github.com/bachya/pyiqvia/releases/tag/${version}";
65 license = with licenses; [ mit ];
66 maintainers = with maintainers; [ fab ];
67 };
68}