From 5ff41b047a7a9a4a99c5373c5b75bf0e1d639203 Mon Sep 17 00:00:00 2001 From: Luis Pedro Coelho Date: Sat, 12 Dec 2015 21:29:28 +0100 Subject: [PATCH 1/2] python.imread: init at 0.5.1 This is a package to read image files into numpy arrays. --- lib/maintainers.nix | 1 + pkgs/top-level/python-packages.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 596b8a49a10..c78a3e61a98 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -174,6 +174,7 @@ lsix = "Lancelot SIX "; ludo = "Ludovic Courtès "; lukego = "Luke Gorrie "; + luispedro = "Luis Pedro Coelho "; lw = "Sergey Sofeychuk "; madjar = "Georges Dubus "; magnetophon = "Bart Brouns "; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0f76a13d6f5..22c2fd6c1d3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4940,6 +4940,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"; From a77a8e3ca668c53854fbe0558f1642949040ace6 Mon Sep 17 00:00:00 2001 From: Luis Pedro Coelho Date: Sat, 12 Dec 2015 23:30:16 +0100 Subject: [PATCH 2/2] python.mahotas: init at 1.4.0 This is a computer vision package for Python based on numpy --- pkgs/top-level/python-packages.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 22c2fd6c1d3..7a64f43c14b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3097,6 +3097,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}";