From e89dc9d2f028fc76ffbfdb294952b9aad78cb0d8 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Fri, 20 Sep 2013 18:04:01 +0200 Subject: [PATCH] pythonPackages: add sqlalchemy_imageattach, SQLAlchemy extension for attaching images to entity objects --- pkgs/top-level/python-packages.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d6b671c69a6e..96195b7b7928 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5793,6 +5793,29 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + sqlalchemy_imageattach = buildPythonPackage rec { + name = "SQLAlchemy-ImageAttach-${version}"; + version = "0.8.1"; + + src = fetchgit { + url = https://github.com/crosspop/sqlalchemy-imageattach.git; + rev = "refs/tags/${version}"; + md5 = "051dd9de0757714d33c3ecd5ab37b97d"; + }; + + buildInputs = [ pytest webob pkgs.imagemagick ]; + propagatedBuildInputs = [ sqlalchemy8 wand ]; + + checkPhase = "cd tests && LD_LIBRARY_PATH=${pkgs.imagemagick}/lib py.test"; + + meta = { + homepage = https://github.com/crosspop/sqlalchemy-imageattach; + description = "SQLAlchemy extension for attaching images to entity objects"; + license = pkgs.lib.licenses.mit; + }; + }; + + sqlalchemy_migrate = buildPythonPackage rec { name = "sqlalchemy-migrate-0.6.1";