2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
aiohttp,
|
|
|
|
aresponses,
|
|
|
|
backoff,
|
|
|
|
certifi,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
yarl,
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyiqvia";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2023.12.0";
|
2021-01-15 22:18:51 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
2023-10-19 13:55:26 +00:00
|
|
|
repo = "pyiqvia";
|
2022-11-02 22:02:43 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-qq6UQUz60WkmWqdmExlSQT3wapaHJr8DeH1eVrTOnpQ=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2021-09-18 10:52:07 +00:00
|
|
|
backoff
|
2023-10-19 13:55:26 +00:00
|
|
|
certifi
|
|
|
|
yarl
|
2021-08-05 21:33:18 +00:00
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-15 22:18:51 +00:00
|
|
|
aresponses
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Ignore the examples as they are prefixed with test_
|
|
|
|
"examples/"
|
|
|
|
];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pyiqvia" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Module for working with IQVIA data";
|
2021-01-15 22:18:51 +00:00
|
|
|
longDescription = ''
|
|
|
|
pyiqvia is an async-focused Python library for allergen, asthma, and
|
|
|
|
disease data from the IQVIA family of websites (such as https://pollen.com,
|
|
|
|
https://flustar.com and more).
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/bachya/pyiqvia";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/bachya/pyiqvia/releases/tag/${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|