depot/third_party/nixpkgs/pkgs/development/python-modules/imread/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

36 lines
722 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, nose
, pkg-config
, libjpeg
, libpng
, libtiff
, libwebp
, numpy
}:
buildPythonPackage rec {
pname = "python-imread";
version = "0.7.4";
src = fetchPypi {
inherit version;
pname = "imread";
sha256 = "0kvlpy62vc16i0mysv1b2gv746in41q75hb815q6h8d227psv1q4";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ nose libjpeg libpng libtiff libwebp ];
propagatedBuildInputs = [ numpy ];
meta = with lib; {
description = "Python package to load images as numpy arrays";
homepage = "https://imread.readthedocs.io/en/latest/";
maintainers = with maintainers; [ luispedro ];
license = licenses.mit;
platforms = platforms.unix;
};
}