mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
1c69b719ef
- add missing input - update meta
77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{ lib
|
|
, awkward
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, importlib-metadata
|
|
, lz4
|
|
, numpy
|
|
, packaging
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scikit-hep-testdata
|
|
, xxhash
|
|
, zstandard
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uproot";
|
|
version = "4.3.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scikit-hep";
|
|
repo = "uproot4";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Te4D2tHVD5fD8DH2njjQMGnTUvLQdcGBzApklnGn6g8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
awkward
|
|
numpy
|
|
lz4
|
|
packaging
|
|
xxhash
|
|
zstandard
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
importlib-metadata
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
scikit-hep-testdata
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME="$(mktemp -d)"
|
|
'';
|
|
|
|
disabledTests = [
|
|
# Tests that try to download files
|
|
"test_http"
|
|
"test_no_multipart"
|
|
"test_fallback"
|
|
"test_pickle_roundtrip_http"
|
|
];
|
|
|
|
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"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|