python3Packages.uproot: init at 4.0.8
This commit is contained in:
parent
9d84a84639
commit
fa0e4b7c41
61
pkgs/development/python-modules/uproot/default.nix
Normal file
61
pkgs/development/python-modules/uproot/default.nix
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildPythonPackage
|
||||||
|
, awkward
|
||||||
|
, numpy
|
||||||
|
, lz4
|
||||||
|
, xxhash
|
||||||
|
, zstandard
|
||||||
|
, pytestCheckHook
|
||||||
|
, scikit-hep-testdata
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "uproot";
|
||||||
|
version = "4.0.8";
|
||||||
|
|
||||||
|
# fetch from github for tests
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "scikit-hep";
|
||||||
|
repo = "uproot4";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-E9BRgyMz+3Xl8Q1zsnVtvW44FXTqs29U1oK4te0myq4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
awkward
|
||||||
|
numpy
|
||||||
|
lz4
|
||||||
|
xxhash
|
||||||
|
zstandard
|
||||||
|
];
|
||||||
|
|
||||||
|
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; {
|
||||||
|
homepage = "https://github.com/scikit-hep/uproot4";
|
||||||
|
description = "ROOT I/O in pure Python and Numpy";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ veprbl ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -8573,6 +8573,8 @@ in {
|
||||||
|
|
||||||
upnpy = callPackage ../development/python-modules/upnpy { };
|
upnpy = callPackage ../development/python-modules/upnpy { };
|
||||||
|
|
||||||
|
uproot = callPackage ../development/python-modules/uproot { };
|
||||||
|
|
||||||
uproot3 = callPackage ../development/python-modules/uproot3 { };
|
uproot3 = callPackage ../development/python-modules/uproot3 { };
|
||||||
|
|
||||||
uproot3-methods = callPackage ../development/python-modules/uproot3-methods { };
|
uproot3-methods = callPackage ../development/python-modules/uproot3-methods { };
|
||||||
|
|
Loading…
Reference in a new issue