at 23.05-pre 1.3 kB view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, pythonOlder 5, fetchPypi 6, substituteAll 7, imageio-ffmpeg 8, numpy 9, pillow 10, psutil 11, pytestCheckHook 12, tifffile 13, fsspec 14, libGL 15}: 16 17buildPythonPackage rec { 18 pname = "imageio"; 19 version = "2.22.1"; 20 disabled = pythonOlder "3.7"; 21 22 src = fetchPypi { 23 sha256 = "sha256-Rl7DX5GdU4kG0wI7Yczsdm2OdXX+Vfy9dmns5Vr7l8o="; 24 inherit pname version; 25 }; 26 27 patches = [ 28 (substituteAll { 29 src = ./libgl-path.patch; 30 libgl = "${libGL.out}/lib/libGL${stdenv.hostPlatform.extensions.sharedLibrary}"; 31 }) 32 ]; 33 34 propagatedBuildInputs = [ 35 imageio-ffmpeg 36 numpy 37 pillow 38 ]; 39 40 checkInputs = [ 41 fsspec 42 psutil 43 pytestCheckHook 44 tifffile 45 ]; 46 47 pytestFlagsArray = [ 48 "-m 'not needs_internet'" 49 ]; 50 51 preCheck = '' 52 export IMAGEIO_USERDIR="$TMP" 53 export HOME=$TMPDIR 54 ''; 55 56 disabledTestPaths = [ 57 # tries to fetch fixtures over the network 58 "tests/test_freeimage.py" 59 "tests/test_pillow.py" 60 "tests/test_spe.py" 61 "tests/test_swf.py" 62 ]; 63 64 meta = with lib; { 65 description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats"; 66 homepage = "http://imageio.github.io/"; 67 license = licenses.bsd2; 68 maintainers = with maintainers; [ Luflosi ]; 69 }; 70}