From 1ff212f0fe30a7733ffd1c69e08859da053fda67 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 May 2023 10:17:34 +0200 Subject: [PATCH] python310Packages.dask-awkward: 2023.1.0 -> 2023.4.2 Diff: https://github.com/dask-contrib/dask-awkward/compare/refs/tags/2023.1.0...2023.4.2 Changelog: https://github.com/dask-contrib/dask-awkward/releases/tag/2023.4.2 --- .../python-modules/dask-awkward/default.nix | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/dask-awkward/default.nix b/pkgs/development/python-modules/dask-awkward/default.nix index 6dd42fcc3c0a..1c6cb7b5bbe5 100644 --- a/pkgs/development/python-modules/dask-awkward/default.nix +++ b/pkgs/development/python-modules/dask-awkward/default.nix @@ -1,18 +1,19 @@ { 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 ]; };