python310Packages.uproot: disable on older Python releases

- add missing input
- update meta
main
Fabian Affolter 2 years ago committed by GitHub
parent 274d2053ed
commit 1c69b719ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 39
      pkgs/development/python-modules/uproot/default.nix

@ -1,62 +1,75 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, awkward
, numpy
, buildPythonPackage
, fetchFromGitHub
, importlib-metadata
, lz4
, setuptools
, xxhash
, zstandard
, numpy
, packaging
, pytestCheckHook
, pythonOlder
, scikit-hep-testdata
, xxhash
, zstandard
}:
buildPythonPackage rec {
pname = "uproot";
version = "4.3.6";
format = "setuptools";
disabled = pythonOlder "3.7";
# fetch from github for tests
src = fetchFromGitHub {
owner = "scikit-hep";
repo = "uproot4";
rev = "refs/tags/v${version}";
sha256 = "sha256-Te4D2tHVD5fD8DH2njjQMGnTUvLQdcGBzApklnGn6g8=";
hash = "sha256-Te4D2tHVD5fD8DH2njjQMGnTUvLQdcGBzApklnGn6g8=";
};
propagatedBuildInputs = [
awkward
numpy
lz4
setuptools
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
# 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 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" ];
pythonImportsCheck = [
"uproot"
];
meta = with lib; {
homepage = "https://github.com/scikit-hep/uproot5";
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 ];
};

Loading…
Cancel
Save