Fabian Affolter
2023-05-01 10:42:18 +02:00
parent b12ad9a534
commit 1ff212f0fe
@@ -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 ];
};