Commit 1ff212f0 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent b12ad9a5
Loading
Loading
Loading
Loading
+19 −12
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, awkward
, buildPythonPackage
, dask
, fetchFromGitHub
, hatch-vcs
, hatchling
, pyarrow
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
}:

buildPythonPackage rec {
  pname = "dask-awkward";
  version = "2023.1.0";
  version = "2023.4.2";
  format = "pyproject";

  disabled = pythonOlder "3.8";
@@ -20,13 +21,20 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "dask-contrib";
    repo = pname;
    rev = version;
    hash = "sha256-q0mBd4yelnNL7rMWfilituo9h/xmLLLndSCBdY2egEQ=";
    rev = "refs/tags/${version}";
    hash = "sha256-c3NnARost/406cALQDKmeUsl2kFSQHAswAEwgreFXPc=";
  };

  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  pythonRelaxDeps = [
    "awkward"
  ];

  nativeBuildInputs = [
    hatch-vcs
    hatchling
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [
@@ -34,8 +42,6 @@ buildPythonPackage rec {
    dask
  ];

  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  checkInputs = [
    pytestCheckHook
    pyarrow
@@ -45,15 +51,16 @@ buildPythonPackage rec {
    "dask_awkward"
  ];

  pytestFlagsArray = [
    # require internet
    "--deselect=tests/test_parquet.py::test_remote_double"
    "--deselect=tests/test_parquet.py::test_remote_single"
  disabledTests = [
    # Tests require network access
    "test_remote_double"
    "test_remote_single"
  ];

  meta = with lib; {
    description = "Native Dask collection for awkward arrays, and the library to use it";
    homepage = "https://github.com/dask-contrib/dask-awkward";
    changelog = "https://github.com/dask-contrib/dask-awkward/releases/tag/${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ veprbl ];
  };