summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2023-01-07 13:16:58 -0500
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2023-01-07 13:17:17 -0500
commitf8f891b0ecdbc6260763031374c1fccd3fbdbd43 (patch)
treeccaedcb4fbc6c405886c119ee31205cfef5e0c1e
parentMerge pull request #209406 from r-ryantm/auto-update/numix-icon-theme-square (diff)
downloadnixpkgs-origin/pr/dask-awkward.tar.gz
python310Packages.dask-awkward: init at 2023.1.0origin/pr/dask-awkward
-rw-r--r--pkgs/development/python-modules/dask-awkward/default.nix60
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dask-awkward/default.nix b/pkgs/development/python-modules/dask-awkward/default.nix
new file mode 100644
index 000000000000..6dd42fcc3c0a
--- /dev/null
+++ b/pkgs/development/python-modules/dask-awkward/default.nix
@@ -0,0 +1,60 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
+, awkward
+, dask
+, hatch-vcs
+, hatchling
+, pyarrow
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "dask-awkward";
+ version = "2023.1.0";
+ format = "pyproject";
+
+ disabled = pythonOlder "3.8";
+
+ src = fetchFromGitHub {
+ owner = "dask-contrib";
+ repo = pname;
+ rev = version;
+ hash = "sha256-q0mBd4yelnNL7rMWfilituo9h/xmLLLndSCBdY2egEQ=";
+ };
+
+ nativeBuildInputs = [
+ hatch-vcs
+ hatchling
+ ];
+
+ propagatedBuildInputs = [
+ awkward
+ dask
+ ];
+
+ SETUPTOOLS_SCM_PRETEND_VERSION = version;
+
+ checkInputs = [
+ pytestCheckHook
+ pyarrow
+ ];
+
+ pythonImportsCheck = [
+ "dask_awkward"
+ ];
+
+ pytestFlagsArray = [
+ # require internet
+ "--deselect=tests/test_parquet.py::test_remote_double"
+ "--deselect=tests/test_parquet.py::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";
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ veprbl ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index cdb5b38c7b6c..9810458054a1 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2171,6 +2171,8 @@ self: super: with self; {
dask = callPackage ../development/python-modules/dask { };
+ dask-awkward = callPackage ../development/python-modules/dask-awkward { };
+
dask-gateway = callPackage ../development/python-modules/dask-gateway { };
dask-gateway-server = callPackage ../development/python-modules/dask-gateway-server { };