nixpkgs/pkgs/development/python-modules/uproot/default.nix
R. RyanTM 68ce39c601 python37Packages.uproot: 3.8.0 -> 3.10.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-uproot/versions
2019-09-28 13:10:41 -07:00

55 lines
979 B
Nix

{ lib, fetchPypi, buildPythonPackage, isPy27
, awkward
, backports_lzma
, cachetools
, lz4
, pytestrunner
, pytest
, pkgconfig
, mock
, numpy
, requests
, uproot-methods
, xxhash
}:
buildPythonPackage rec {
pname = "uproot";
version = "3.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "1ir3gxgfidw0lx0d2x1lmmxg9brb5fam3ncfihba2b0bvyq9bqzd";
};
nativeBuildInputs = [ pytestrunner ];
checkInputs = [
lz4
mock
pkgconfig
pytest
requests
xxhash
] ++ lib.optional isPy27 backports_lzma;
propagatedBuildInputs = [
numpy
cachetools
uproot-methods
awkward
];
# skip tests which do network calls
checkPhase = ''
pytest tests -k 'not hist_in_tree and not branch_auto_interpretation'
'';
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 ];
};
}