Merge pull request #11699 from luispedro/add_mahotas

Add mahotas & imread
This commit is contained in:
Domen Kožar 2015-12-14 11:29:43 +01:00
commit 59e33d42e4
2 changed files with 56 additions and 0 deletions

View File

@ -173,6 +173,7 @@
lsix = "Lancelot SIX <lsix@lancelotsix.com>";
ludo = "Ludovic Courtès <ludo@gnu.org>";
lukego = "Luke Gorrie <luke@snabb.co>";
luispedro = "Luis Pedro Coelho <luis@luispedro.org>";
lw = "Sergey Sofeychuk <lw@fmap.me>";
madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
magnetophon = "Bart Brouns <bart@magnetophon.nl>";

View File

@ -3134,6 +3134,34 @@ in modules // {
};
};
mahotas = buildPythonPackage rec {
name = "python-mahotas-${version}";
version = "1.4.0";
src = pkgs.fetchurl {
url = "https://github.com/luispedro/mahotas/archive/release-${version}.tar.gz";
sha256 = "30c4b979e0d5f4c013860321766a79ffcabe56c1ad9088e5d0c6b36aec5f0415";
};
buildInputs = with self; [
nose
pillow
scipy
];
propagatedBuildInputs = with self; [
numpy
imread
];
meta = with stdenv.lib; {
description = "Computer vision package based on numpy";
homepage = https://readthedocs.org/projects/mahotas/;
maintainers = with maintainers; [ luispedro ];
license = licenses.mit;
platforms = platforms.linux;
};
};
mixpanel = buildPythonPackage rec {
version = "4.0.2";
name = "mixpanel-${version}";
@ -4977,6 +5005,33 @@ in modules // {
};
};
imread = buildPythonPackage rec {
name = "python-imread-${version}";
version = "0.5.1";
src = pkgs.fetchurl {
url = "https://github.com/luispedro/imread/archive/release-${version}.tar.gz";
sha256 = "12d7ba3523ba50d67d526e9797e041021dd9cd4acf9567a9bf73c8ae0b689d4a";
};
buildInputs = with self; [
nose
pkgs.libjpeg
pkgs.libpng
pkgs.libtiff
pkgs.libwebp
];
propagatedBuildInputs = with self; [ numpy ];
meta = with stdenv.lib; {
description = "Python package to load images as numpy arrays";
homepage = https://readthedocs.org/projects/imread/;
maintainers = with maintainers; [ luispedro ];
license = licenses.mit;
platforms = platforms.linux;
};
};
itsdangerous = buildPythonPackage rec {
name = "itsdangerous-0.24";