Commit 5de8457c authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent 3af88eb4
Loading
Loading
Loading
Loading
+31 −20
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,

  # build-system
@@ -13,29 +13,27 @@
  fsspec,
  numpy,
  packaging,
  typing-extensions,
  importlib-metadata,

  # checks
  # tests
  numba,
  setuptools,
  numexpr,
  pandas,
  pyarrow,
  pytest-xdist,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "awkward";
  version = "2.7.2";
  version = "2.7.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "scikit-hep";
    repo = "awkward";
    tag = "v${version}";
    hash = "sha256-nOKMwAQ5t8tc64bEKz0j8JxxoVQQu39Iu8Zr9cqSx7A=";
    hash = "sha256-OXSl+8sfrx+JlLu40wHf+98WVNNwm9uxvsnGXRDztDg=";
  };

  build-system = [
@@ -43,15 +41,12 @@ buildPythonPackage rec {
    hatchling
  ];

  dependencies =
    [
  dependencies = [
    awkward-cpp
    fsspec
    numpy
    packaging
    ]
    ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ]
    ++ lib.optionals (pythonOlder "3.12") [ importlib-metadata ];
  ];

  dontUseCmakeConfigure = true;

@@ -60,17 +55,33 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    fsspec
    numba
    setuptools
    numexpr
    pandas
    pyarrow
    pytest-xdist
    pytestCheckHook
    setuptools
  ];

  disabledTests = [
    # pyarrow.lib.ArrowInvalid
    "test_recordarray"
  ];

  disabledTestPaths = [
  disabledTestPaths =
    [
      # Need to be run on a GPU platform.
      "tests-cuda"
    ]
    ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
      # Fatal Python error: Segmentation fault at:
      # numba/typed/typedlist.py", line 344 in append
      "tests/test_0118_numba_cpointers.py"
      "tests/test_0397_arrays_as_constants_in_numba.py"
      "tests/test_1677_array_builder_in_numba.py"
      "tests/test_2055_array_builder_check.py"
      "tests/test_2349_growablebuffer_in_numba.py"
      "tests/test_2408_layoutbuilder_in_numba.py"
    ];

  meta = {