nixpkgs/pkgs/development/python-modules/imageio/default.nix

45 lines
815 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, imageio-ffmpeg
, numpy
2021-04-30 10:30:34 +00:00
, pillow
, psutil
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "imageio";
2020-08-16 17:31:03 +00:00
version = "2.9.0";
disabled = isPy27;
src = fetchPypi {
2020-08-16 17:31:03 +00:00
sha256 = "52ddbaeca2dccf53ba2d6dec5676ca7bc3b2403ef8b37f7da78b7654bb3e10f0";
inherit pname version;
};
2021-04-30 10:30:34 +00:00
propagatedBuildInputs = [
imageio-ffmpeg
numpy
pillow
];
checkInputs = [
psutil
pytestCheckHook
];
2021-04-30 10:30:34 +00:00
preCheck = ''
export IMAGEIO_USERDIR="$TMP"
export IMAGEIO_NO_INTERNET="true"
export HOME="$(mktemp -d)"
'';
meta = with lib; {
description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
homepage = "http://imageio.github.io/";
license = licenses.bsd2;
};
}