2018-10-16 05:39:44 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2019-05-06 05:13:44 +02:00
|
|
|
, fetchPypi
|
2018-10-16 05:39:44 +02:00
|
|
|
, nose
|
2019-05-06 05:13:44 +02:00
|
|
|
, pkgconfig
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, libwebp
|
2018-10-16 05:39:44 +02:00
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-imread";
|
2019-05-06 05:13:44 +02:00
|
|
|
version = "0.7.0";
|
2018-10-16 05:39:44 +02:00
|
|
|
|
2019-05-06 05:13:44 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "imread";
|
|
|
|
sha256 = "0yb0fmy6ilh5fvbk69wl2bzqgss2g0951668mx8z9yyj4jhr1z2y";
|
2018-10-16 05:39:44 +02:00
|
|
|
};
|
|
|
|
|
2019-05-06 05:13:44 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ nose libjpeg libpng libtiff libwebp ];
|
2018-10-16 05:39:44 +02:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python package to load images as numpy arrays";
|
|
|
|
homepage = https://imread.readthedocs.io/en/latest/;
|
|
|
|
maintainers = with maintainers; [ luispedro ];
|
|
|
|
license = licenses.mit;
|
2019-02-17 14:00:33 +01:00
|
|
|
platforms = platforms.unix;
|
2018-10-16 05:39:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|