depot/third_party/nixpkgs/pkgs/development/python-modules/imageio/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

44 lines
815 B
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, imageio-ffmpeg
, numpy
, pillow
, psutil
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "imageio";
version = "2.9.0";
disabled = isPy27;
src = fetchPypi {
sha256 = "52ddbaeca2dccf53ba2d6dec5676ca7bc3b2403ef8b37f7da78b7654bb3e10f0";
inherit pname version;
};
propagatedBuildInputs = [
imageio-ffmpeg
numpy
pillow
];
checkInputs = [
psutil
pytestCheckHook
];
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;
};
}