e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
36 lines
721 B
Nix
36 lines
721 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, pkg-config
|
|
, libjpeg
|
|
, libpng
|
|
, libtiff
|
|
, libwebp
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-imread";
|
|
version = "0.7.5";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "imread";
|
|
sha256 = "sha256-GiWpA128GuLlbBW1CQQHHVVeoZfu9Yyh2RFzSdtHDbc=";
|
|
};
|
|
|
|
|
|
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;
|
|
};
|
|
|
|
}
|