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