nixpkgs/pkgs/development/python-modules/uproot/default.nix
Fabian Affolter 1c69b719ef
python310Packages.uproot: disable on older Python releases
- add missing input
- update meta
2022-10-06 15:45:40 +02:00

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 ];
};
}