Unverified Commit 733d5763 authored by pcboy's avatar pcboy
Browse files

harlequin: 1.25.2 -> 1.25.2-unstable-2024-12-30

Fixing runtime issue with Textual > 0.82
parent d7d5f5ce
Loading
Loading
Loading
Loading
+21 −13
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  python3Packages,
  fetchFromGitHub,
  harlequin,
  testers,
  nix-update-script,
  versionCheckHook,
  glibcLocales,
  withPostgresAdapter ? true,
  withBigQueryAdapter ? true,
}:
python3Packages.buildPythonApplication rec {
  pname = "harlequin";
  version = "1.25.2";
  version = "1.25.2-unstable-2024-12-30";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tconbeer";
    repo = "harlequin";
    tag = "v${version}";
    hash = "sha256-ov9pMvFzJAMfOM7JeSgnp6dZ424GiRaH7W5OCKin9Jk=";
    rev = "7ef5327157c7617c1032c9128b487b32d1c91fea";
    hash = "sha256-QoIjEfQgN6YWDDor4PxfeFkkFGAidUC0ZvHy+PqgnWs=";
  };

  pythonRelaxDeps = [ "textual" ];
  pythonRelaxDeps = [
    "numpy"
    "pyarrow"
    "textual"
  ];

  build-system = with python3Packages; [ poetry-core ];

@@ -65,17 +67,23 @@ python3Packages.buildPythonApplication rec {

  nativeCheckInputs =
    [
      versionCheckHook
      # FIX: restore on next release
      # versionCheckHook
    ]
    ++ (with python3Packages; [
      pytest-asyncio
      pytestCheckHook
    ]);

  disabledTests = [
  disabledTests =
    [
      # Tests require network access
      "test_connect_extensions"
      "test_connect_prql"
    ]
    ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-darwin") [
      # Test incorrectly tries to load a dylib compiled for x86_64
      "test_load_extension"
    ];

  disabledTestPaths = [