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

60 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, fetchPypi, buildPythonPackage, isPy27
2018-10-25 18:26:45 +03:00
, awkward
, backports_lzma
2018-10-25 18:26:45 +03:00
, cachetools
2019-06-19 03:25:40 +03:00
, lz4
2019-11-28 03:33:59 +03:00
, pandas
2018-10-25 18:26:45 +03:00
, pytestrunner
, pytest
2019-01-18 00:18:08 +03:00
, pkgconfig
2019-03-05 15:08:45 +03:00
, mock
2019-06-19 03:25:40 +03:00
, numpy
2019-03-05 15:08:45 +03:00
, requests
2019-06-19 03:25:40 +03:00
, uproot-methods
, xxhash
2018-10-25 18:26:45 +03:00
}:
2018-04-26 10:59:20 +03:00
buildPythonPackage rec {
pname = "uproot";
2020-06-05 20:44:38 +03:00
version = "3.11.7";
2018-04-26 10:59:20 +03:00
src = fetchPypi {
inherit pname version;
2020-06-05 20:44:38 +03:00
sha256 = "3fbf9dfe5ce996ffda3a49d16eba804b95fb05bc041fc4e7bc05317a03bf6cba";
2018-04-26 10:59:20 +03:00
};
2019-03-05 15:08:45 +03:00
nativeBuildInputs = [ pytestrunner ];
2019-06-19 03:25:40 +03:00
checkInputs = [
lz4
mock
2019-11-28 03:33:59 +03:00
pandas
2019-06-19 03:25:40 +03:00
pkgconfig
pytest
requests
xxhash
] ++ lib.optional isPy27 backports_lzma;
2019-06-19 03:25:40 +03:00
propagatedBuildInputs = [
numpy
cachetools
uproot-methods
awkward
];
# skip tests which do network calls
2019-12-23 23:37:10 +03:00
# test_compression.py is missing zstandard package
2019-06-19 03:25:40 +03:00
checkPhase = ''
2019-12-23 23:37:10 +03:00
pytest tests -k 'not hist_in_tree \
and not branch_auto_interpretation' \
--ignore=tests/test_compression.py
2019-06-19 03:25:40 +03:00
'';
2018-04-26 10:59:20 +03:00
meta = with lib; {
homepage = "https://github.com/scikit-hep/uproot";
2018-04-26 10:59:20 +03:00
description = "ROOT I/O in pure Python and Numpy";
license = licenses.bsd3;
maintainers = with maintainers; [ ktf ];
};
}