mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
4b1e12c5b7
Mostly trivial update of version and hashes, but also explicitly use the right dependencies
37 lines
728 B
Nix
37 lines
728 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, pkgconfig
|
|
, libjpeg
|
|
, libpng
|
|
, libtiff
|
|
, libwebp
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-imread";
|
|
version = "0.7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "imread";
|
|
sha256 = "0yb0fmy6ilh5fvbk69wl2bzqgss2g0951668mx8z9yyj4jhr1z2y";
|
|
};
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ nose libjpeg libpng libtiff libwebp ];
|
|
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;
|
|
platforms = platforms.unix;
|
|
};
|
|
|
|
}
|