at 24.05-pre 1.4 kB view raw
1{ lib 2, buildPythonPackage 3, aiohttp 4, aresponses 5, backoff 6, certifi 7, fetchFromGitHub 8, fetchpatch 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.10.0"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.9"; 23 24 src = fetchFromGitHub { 25 owner = "bachya"; 26 repo = "pyiqvia"; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-8eTa2h+1QOL0T13+lg2OzvaQv6CYYKkviQb4J5KPsvM="; 29 }; 30 31 nativeBuildInputs = [ 32 poetry-core 33 ]; 34 35 propagatedBuildInputs = [ 36 aiohttp 37 backoff 38 certifi 39 yarl 40 ]; 41 42 __darwinAllowLocalNetworking = true; 43 44 nativeCheckInputs = [ 45 aresponses 46 pytest-aiohttp 47 pytest-asyncio 48 pytestCheckHook 49 ]; 50 51 disabledTestPaths = [ 52 # Ignore the examples as they are prefixed with test_ 53 "examples/" 54 ]; 55 56 pythonImportsCheck = [ 57 "pyiqvia" 58 ]; 59 60 meta = with lib; { 61 description = "Module for working with IQVIA data"; 62 longDescription = '' 63 pyiqvia is an async-focused Python library for allergen, asthma, and 64 disease data from the IQVIA family of websites (such as https://pollen.com, 65 https://flustar.com and more). 66 ''; 67 homepage = "https://github.com/bachya/pyiqvia"; 68 changelog = "https://github.com/bachya/pyiqvia/releases/tag/${version}"; 69 license = with licenses; [ mit ]; 70 maintainers = with maintainers; [ fab ]; 71 }; 72}