ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / uproot / default.nix
blob784d02dafa42c7d10c4a3a86865dfd085c8faf90
1 { lib
2 , awkward
3 , buildPythonPackage
4 , fetchFromGitHub
5 , importlib-metadata
6 , lz4
7 , numpy
8 , packaging
9 , pytestCheckHook
10 , pythonOlder
11 , scikit-hep-testdata
12 , xxhash
13 , zstandard
16 buildPythonPackage rec {
17   pname = "uproot";
18   version = "4.3.6";
19   format = "setuptools";
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "scikit-hep";
25     repo = "uproot4";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-Te4D2tHVD5fD8DH2njjQMGnTUvLQdcGBzApklnGn6g8=";
28   };
30   propagatedBuildInputs = [
31     awkward
32     numpy
33     lz4
34     packaging
35     xxhash
36     zstandard
37   ]  ++ lib.optionals (pythonOlder "3.8") [
38     importlib-metadata
39   ];
41   checkInputs = [
42     pytestCheckHook
43     scikit-hep-testdata
44   ];
46   preCheck = ''
47     export HOME="$(mktemp -d)"
48   '';
50   disabledTests = [
51     # Tests that try to download files
52     "test_http"
53     "test_no_multipart"
54     "test_fallback"
55     "test_pickle_roundtrip_http"
56   ];
58   disabledTestPaths = [
59     # Tests that try to download files
60     "tests/test_0066-fix-http-fallback-freeze.py"
61     "tests/test_0088-read-with-http.py"
62     "tests/test_0220-contiguous-byte-ranges-in-http.py"
63   ];
65   pythonImportsCheck = [
66     "uproot"
67   ];
69   meta = with lib; {
70     description = "ROOT I/O in pure Python and Numpy";
71     homepage = "https://github.com/scikit-hep/uproot5";
72     changelog = "https://github.com/scikit-hep/uproot5/releases/tag/v${version}";
73     license = licenses.bsd3;
74     maintainers = with maintainers; [ veprbl ];
75   };