2018-10-16 04:39:44 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2019-05-06 04:13:44 +01:00
|
|
|
, fetchPypi
|
2018-10-16 04:39:44 +01:00
|
|
|
, nose
|
2019-05-06 04:13:44 +01:00
|
|
|
, pkgconfig
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, libwebp
|
2018-10-16 04:39:44 +01:00
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-imread";
|
2019-05-06 04:13:44 +01:00
|
|
|
version = "0.7.0";
|
2018-10-16 04:39:44 +01:00
|
|
|
|
2019-05-06 04:13:44 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "imread";
|
|
|
|
sha256 = "0yb0fmy6ilh5fvbk69wl2bzqgss2g0951668mx8z9yyj4jhr1z2y";
|
2018-10-16 04:39:44 +01:00
|
|
|
};
|
|
|
|
|
2019-05-06 04:13:44 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ nose libjpeg libpng libtiff libwebp ];
|
2018-10-16 04:39:44 +01: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 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2018-10-16 04:39:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|