37 lines
783 B
Nix
Raw Normal View History

2018-10-25 11:26:45 -04:00
{ lib
, fetchPypi
, buildPythonPackage
, numpy
, uproot-methods
, awkward
, cachetools
, pythonOlder
, pytestrunner
, pytest
2019-01-17 22:18:08 +01:00
, pkgconfig
, lz4
2018-10-25 11:26:45 -04:00
, backports_lzma
}:
2018-04-26 09:59:20 +02:00
buildPythonPackage rec {
pname = "uproot";
2019-02-14 08:37:32 +01:00
version = "3.4.5";
2018-04-26 09:59:20 +02:00
src = fetchPypi {
inherit pname version;
2019-02-14 08:37:32 +01:00
sha256 = "46a99b590c062ad01f2721af04e6262986f0b53e51dfedf68bf4049bb015c12f";
2018-04-26 09:59:20 +02:00
};
2018-10-25 11:26:45 -04:00
buildInputs = [ pytestrunner ];
2019-01-17 22:18:08 +01:00
checkInputs = [ pytest pkgconfig lz4 ]
2018-10-25 11:26:45 -04:00
++ lib.optionals (pythonOlder "3.3") [ backports_lzma ];
2019-01-17 22:18:08 +01:00
propagatedBuildInputs = [ numpy cachetools uproot-methods awkward ];
2018-04-26 09:59:20 +02:00
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 ];
};
}