From cc2334849f8fc41214309060d4eaca9a0c8669b7 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 11 Nov 2019 05:58:19 -0500 Subject: [PATCH] pythonPackages.awkward1: init at 0.1.28 --- .../python-modules/awkward1/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/awkward1/default.nix diff --git a/pkgs/development/python-modules/awkward1/default.nix b/pkgs/development/python-modules/awkward1/default.nix new file mode 100644 index 000000000000..6b515b56713a --- /dev/null +++ b/pkgs/development/python-modules/awkward1/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchPypi +, cmake +, numba +, numpy +, pytest +, rapidjson +}: + +buildPythonPackage rec { + pname = "awkward1"; + version = "0.1.28"; + + src = fetchPypi { + inherit pname version; + sha256 = "2269aca04c827549435e24f9976d27e904d02b74a30caa9a2a463225a8ba1609"; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ rapidjson ]; + propagatedBuildInputs = [ numpy ]; + + dontUseCmakeConfigure = true; + + checkInputs = [ pytest numba ]; + checkPhase = '' + py.test + ''; + + meta = with lib; { + description = "Development of awkward 1.0, to replace scikit-hep/awkward-array in 2020"; + homepage = "https://github.com/scikit-hep/awkward-1.0"; + license = licenses.bsd3; + maintainers = with maintainers; [ veprbl ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f9df5646d8eb..37e815a65b2a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -225,6 +225,7 @@ in { automat = callPackage ../development/python-modules/automat { }; awkward = callPackage ../development/python-modules/awkward { }; + awkward1 = callPackage ../development/python-modules/awkward1 { }; aws-sam-translator = callPackage ../development/python-modules/aws-sam-translator { };