diff --git a/pkgs/development/libraries/libuv/default.nix b/pkgs/development/libraries/libuv/default.nix index a41a6ec32d061..45d9c2e70b013 100644 --- a/pkgs/development/libraries/libuv/default.nix +++ b/pkgs/development/libraries/libuv/default.nix @@ -19,6 +19,7 @@ stdenv.mkDerivation rec { "threadpool_multiple_event_loops" # times out on slow machines "get_passwd" # passed on NixOS but failed on other Linuxes "tcp_writealot" # times out sometimes + "ipc_closed_handle" # times out ] ++ stdenv.lib.optionals stdenv.isDarwin [ # Sometimes: timeout (no output), failed uv_listen. Someone # should report these failures to libuv team. There tests should diff --git a/pkgs/development/python-modules/pydruid/default.nix b/pkgs/development/python-modules/pydruid/default.nix new file mode 100755 index 0000000000000..49721f7b4067c --- /dev/null +++ b/pkgs/development/python-modules/pydruid/default.nix @@ -0,0 +1,50 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pandas +, prompt_toolkit +, pycurl +, pygments +, pytest +, pytestrunner +, requests +, six +, sqlalchemy +, tabulate +, tornado +}: + +buildPythonPackage rec { + pname = "pydruid"; + version = "0.5.8"; + + src = fetchFromGitHub { + owner = "druid-io"; + repo = pname; + rev = version; + sha256 = "0zb6zmklib26fzv5dvqzy0h0p1ljjgkklnjm66imc35mx5irpzcv"; + }; + + patchPhase = '' + # timestamp is added to the end of the list, and dict keeps keys in insertion order + substituteInPlace tests/test_query.py --replace \ + "def expected_results_csv_reader():" " + EXPECTED_RESULTS_PANDAS = list(map(lambda x: dict(list(x.items())[1:] + [list(x.items())[0]]), EXPECTED_RESULTS_PANDAS)) + def expected_results_csv_reader():" + ''; + + propagatedBuildInputs = [ pandas prompt_toolkit pycurl pygments requests six sqlalchemy tabulate tornado ]; + + checkInputs = [ pytest pytestrunner ]; + + checkPhase = '' + pytest tests + ''; + + meta = with lib; { + description = "A Python connector for Druid"; + homepage = "https://github.com/druid-io/pydruid"; + license = licenses.asl20; + maintainers = [ maintainers.arnoldfarkas ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 148990650dd2f..8ac4006b8324e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1066,6 +1066,8 @@ in { pydrive = callPackage ../development/python-modules/pydrive { }; + pydruid = callPackage ../development/python-modules/pydruid { }; + pydy = callPackage ../development/python-modules/pydy { }; pyexiv2 = disabledIf isPy3k (toPythonModule (callPackage ../development/python-modules/pyexiv2 {}));