about summary refs log tree commit diff
path: root/pkgs/development/python-modules/uproot/default.nix
blob: fdb465202beb278d0376344d3be11bce458ae8fd (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
{ lib
, fetchPypi
, buildPythonPackage
, numpy
, uproot-methods
, awkward
, cachetools
, pythonOlder
, pytestrunner
, pytest
, pkgconfig
, lz4
, mock
, requests
, backports_lzma
}:

buildPythonPackage rec {
  pname = "uproot";
  version = "3.4.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1fafe476c26252e4dbd399456323778e76d23dc2f43cf6581a707d1647978610";
  };

  nativeBuildInputs = [ pytestrunner ];
  checkInputs = [ pytest pkgconfig lz4 mock requests ]
    ++ lib.optionals (pythonOlder "3.3") [ backports_lzma ];
  propagatedBuildInputs = [ numpy cachetools uproot-methods awkward ];

  meta = with lib; {
    homepage = https://github.com/scikit-hep/uproot;
    description = "ROOT I/O in pure Python and Numpy";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ktf ];
  };
}