diff options
-rw-r--r-- | pkgs/development/python-modules/influxdb/default.nix | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/pkgs/development/python-modules/influxdb/default.nix b/pkgs/development/python-modules/influxdb/default.nix index ca962f4e4792..1f7e7c017501 100644 --- a/pkgs/development/python-modules/influxdb/default.nix +++ b/pkgs/development/python-modules/influxdb/default.nix @@ -1,26 +1,28 @@ -{ lib -, buildPythonPackage -, python-dateutil -, fetchPypi -, mock -, msgpack -, pynose -, pandas -, pytestCheckHook -, pytz -, requests -, requests-mock -, six +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + msgpack, + pandas, + pynose, + pytestCheckHook, + python-dateutil, + pytz, + requests, + requests-mock, + setuptools, + six, }: buildPythonPackage rec { pname = "influxdb"; - version = "5.3.1"; - format = "setuptools"; + version = "5.3.2"; + pyproject = true; src = fetchPypi { inherit pname version; - sha256 = "0ymjv322mv6y424fmpd70f87152w55mbwwj6i7p3sjzf0ixmxy26"; + hash = "sha256-WMZH9gQ3Et2G6a7hLrTM+7tUFUZ7yZEKSKqMdMEQiXA="; }; postPatch = '' @@ -35,25 +37,28 @@ buildPythonPackage rec { done ''; - propagatedBuildInputs = [ - requests + build-system = [ setuptools ]; + + dependencies = [ + msgpack python-dateutil pytz + requests six - msgpack ]; __darwinAllowLocalNetworking = true; nativeCheckInputs = [ - pytestCheckHook - requests-mock mock - pynose pandas + pynose + pytestCheckHook + requests-mock ]; disabledTests = [ + "socket" # Tests cause FutureWarning due to use of 'record' instead of 'records' in pandas. # https://github.com/influxdata/influxdb-python/pull/845 # Also type mismatches in assertEqual on DataFrame: @@ -78,6 +83,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python client for InfluxDB"; homepage = "https://github.com/influxdb/influxdb-python"; + changelog = "https://github.com/influxdata/influxdb-python/blob/v${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; }; |