Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 36 lines 728 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, nose 5, pkgconfig 6, libjpeg 7, libpng 8, libtiff 9, libwebp 10, numpy 11}: 12 13buildPythonPackage rec { 14 pname = "python-imread"; 15 version = "0.7.0"; 16 17 src = fetchPypi { 18 inherit version; 19 pname = "imread"; 20 sha256 = "0yb0fmy6ilh5fvbk69wl2bzqgss2g0951668mx8z9yyj4jhr1z2y"; 21 }; 22 23 24 nativeBuildInputs = [ pkgconfig ]; 25 buildInputs = [ nose libjpeg libpng libtiff libwebp ]; 26 propagatedBuildInputs = [ numpy ]; 27 28 meta = with stdenv.lib; { 29 description = "Python package to load images as numpy arrays"; 30 homepage = https://imread.readthedocs.io/en/latest/; 31 maintainers = with maintainers; [ luispedro ]; 32 license = licenses.mit; 33 platforms = platforms.unix; 34 }; 35 36}