Merge pull request #196043 from fabaff/reactivex

python310Packages.influxdb-client: 1.31.0 -> 1.33.0
This commit is contained in:
Fabian Affolter 2022-10-15 08:53:07 +02:00 committed by GitHub
commit a2f0aeb853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 129 additions and 13 deletions

View File

@ -0,0 +1,54 @@
{ lib
, aiofiles
, buildPythonPackage
, cython
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiocsv";
version = "1.2.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MKuranowski";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-lh+yHyHU+XrK4nk1xxrxgF5zGH7lP9jHdJ+m9ncfprw=";
};
nativeBuildInputs = [
cython
];
checkInputs = [
aiofiles
pytest-asyncio
pytestCheckHook
];
preBuild = ''
export CYTHONIZE=1
'';
pythonImportsCheck = [
"aiocsv"
];
disabledTestPaths = [
# Import issue
"tests/test_parser.py"
];
meta = with lib; {
description = "Library for for asynchronous CSV reading/writing";
homepage = "https://github.com/MKuranowski/aiocsv";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,21 +1,22 @@
{ lib
, aiohttp
, aiocsv
, buildPythonPackage
, fetchFromGitHub
, rx
, certifi
, six
, ciso8601
, fetchFromGitHub
, numpy
, pandas
, python-dateutil
, pythonOlder
, reactivex
, setuptools
, urllib3
, ciso8601
, pytz
, pythonOlder
}:
buildPythonPackage rec {
pname = "influxdb-client";
version = "1.31.0";
version = "1.33.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -24,29 +25,32 @@ buildPythonPackage rec {
owner = "influxdata";
repo = "influxdb-client-python";
rev = "refs/tags/v${version}";
hash = "sha256-gTJgY4vFgmFDn2WYUKEbvbu7hjxcw2QGI+blensS5BI=";
hash = "sha256-RhUIdIwLYJwlpLtyrXO9GCvKY6OLDJl7Aop5acgTHN0=";
};
propagatedBuildInputs = [
rx
certifi
six
python-dateutil
reactivex
setuptools
urllib3
pytz
];
passthru.optional-dependencies = {
async = [
aiocsv
aiohttp
];
ciso = [
ciso8601
];
extra = [
numpy
pandas
];
};
# requires influxdb server
# Requires influxdb server
doCheck = false;
pythonImportsCheck = [
@ -54,7 +58,7 @@ buildPythonPackage rec {
];
meta = with lib; {
description = "InfluxDB 2.0 Python client library";
description = "InfluxDB client library";
homepage = "https://github.com/influxdata/influxdb-client-python";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];

View File

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "reactivex";
version = "4.0.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ReactiveX";
repo = "RxPY";
rev = "refs/tags/v${version}";
hash = "sha256-W1qYNbYV6Roz1GJtP/vpoPD6KigWaaQOWe1R5DZHlUw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
typing-extensions
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
postPatch = ''
# Upstream doesn't set a version for their GitHub releases
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"'
'';
pythonImportsCheck = [
"reactivex"
];
meta = with lib; {
description = "Library for composing asynchronous and event-based programs";
homepage = "https://github.com/ReactiveX/RxPY";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -291,6 +291,8 @@ in {
aiocontextvars = callPackage ../development/python-modules/aiocontextvars { };
aiocsv = callPackage ../development/python-modules/aiocsv { };
aiocurrencylayer = callPackage ../development/python-modules/aiocurrencylayer { };
aiodiscover = callPackage ../development/python-modules/aiodiscover { };
@ -9632,6 +9634,8 @@ in {
readthedocs-sphinx-ext = callPackage ../development/python-modules/readthedocs-sphinx-ext { };
reactivex = callPackage ../development/python-modules/reactivex { };
rebulk = callPackage ../development/python-modules/rebulk { };
recaptcha_client = callPackage ../development/python-modules/recaptcha_client { };