depot/third_party/nixpkgs/pkgs/development/python-modules/uproot/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

83 lines
1.6 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, awkward
, hatchling
, numpy
, packaging
, pytestCheckHook
, lz4
, pytest-timeout
, scikit-hep-testdata
, xxhash
, zstandard
}:
buildPythonPackage rec {
pname = "uproot";
version = "5.1.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "scikit-hep";
repo = "uproot5";
rev = "refs/tags/v${version}";
hash = "sha256-TMa+j2jdFagJJhlyCx4rNLaxQhrJyq1HdpnA40xiyME=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
awkward
numpy
packaging
];
nativeCheckInputs = [
pytestCheckHook
lz4
pytest-timeout
scikit-hep-testdata
xxhash
zstandard
];
preCheck = ''
export HOME="$(mktemp -d)"
'';
disabledTests = [
# Tests that try to download files
"test_http"
"test_no_multipart"
"test_fallback"
"test_pickle_roundtrip_http"
"test_open_fsspec_local"
];
disabledTestPaths = [
# Tests that try to download files
"tests/test_0066-fix-http-fallback-freeze.py"
"tests/test_0088-read-with-http.py"
"tests/test_0220-contiguous-byte-ranges-in-http.py"
"tests/test_0916-read-from-s3.py"
"tests/test_0930-expressions-in-pandas.py"
];
pythonImportsCheck = [
"uproot"
];
meta = with lib; {
description = "ROOT I/O in pure Python and Numpy";
homepage = "https://github.com/scikit-hep/uproot5";
changelog = "https://github.com/scikit-hep/uproot5/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ veprbl ];
};
}