mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
python3Packages.pyiqvia: init 0.3.1
This commit is contained in:
parent
210b6509ed
commit
8acbbecaac
53
pkgs/development/python-modules/pyiqvia/default.nix
Normal file
53
pkgs/development/python-modules/pyiqvia/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, aiohttp
|
||||
, aresponses
|
||||
, fetchFromGitHub
|
||||
, poetry
|
||||
, pytest-aiohttp
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyiqvia";
|
||||
version = "0.3.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bachya";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1yjsbq4p040a35n8g2l0wgnv83wkjirv4rj73s2mjzn3cxf395bz";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry ];
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
|
||||
checkInputs = [
|
||||
aresponses
|
||||
pytest-aiohttp
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Ignore the examples as they are prefixed with test_
|
||||
pytestFlagsArray = [ "--ignore examples/" ];
|
||||
pythonImportsCheck = [ "pyiqvia" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python3 API for IQVIA data";
|
||||
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";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -5317,6 +5317,8 @@ in {
|
|||
|
||||
pyipp = callPackage ../development/python-modules/pyipp { };
|
||||
|
||||
pyiqvia = callPackage ../development/python-modules/pyiqvia { };
|
||||
|
||||
pyjet = callPackage ../development/python-modules/pyjet { };
|
||||
|
||||
pyjks = callPackage ../development/python-modules/pyjks { };
|
||||
|
|
Loading…
Reference in a new issue