about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/awkward0/default.nix
blob: c248c81da75145acdbc11d0bc066420fd6969998 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pandas
, pytestrunner
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "awkward0";
  version = "0.15.2";

  src = fetchFromGitHub {
    owner = "scikit-hep";
    repo = "awkward-0.x";
    rev = version;
    sha256 = "sha256-C6/byIGcabGjws5QI9sh5BO2M4Lhqkooh4mSjUEKCKU=";
  };

  nativeBuildInputs = [ pytestrunner ];

  propagatedBuildInputs = [ numpy ];

  checkInputs = [ pandas pytestCheckHook ];

  checkPhase = ''
    # Almost all tests in this file fail
    rm tests/test_persist.py
    py.test
  '';

  meta = with lib; {
    description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy";
    homepage = "https://github.com/scikit-hep/awkward-array";
    license = licenses.bsd3;
    maintainers = with maintainers; [ costrouc SuperSandro2000 ];
  };
}