nixpkgs/pkgs/development/python-modules/uproot/default.nix

39 lines
822 B
Nix
Raw Normal View History

2018-10-25 16:26:45 +01:00
{ lib
, fetchPypi
, buildPythonPackage
, numpy
, uproot-methods
, awkward
, cachetools
, pythonOlder
, pytestrunner
, pytest
2019-01-17 21:18:08 +00:00
, pkgconfig
, lz4
2019-03-05 12:08:45 +00:00
, mock
, requests
2018-10-25 16:26:45 +01:00
, backports_lzma
}:
2018-04-26 08:59:20 +01:00
buildPythonPackage rec {
pname = "uproot";
2019-04-16 18:15:42 +01:00
version = "3.4.19";
2018-04-26 08:59:20 +01:00
src = fetchPypi {
inherit pname version;
2019-04-16 18:15:42 +01:00
sha256 = "1df24d1f193b044cc4d6ef98e183a853655b568b7b15173d88b0d2a79e1226da";
2018-04-26 08:59:20 +01:00
};
2019-03-05 12:08:45 +00:00
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pytest pkgconfig lz4 mock requests ]
2018-10-25 16:26:45 +01:00
++ lib.optionals (pythonOlder "3.3") [ backports_lzma ];
2019-01-17 21:18:08 +00:00
propagatedBuildInputs = [ numpy cachetools uproot-methods awkward ];
2018-04-26 08:59:20 +01: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 ];
};
}