Description: Make JSMin dependency optional
 JSMin is a JavaScript compressor. It's known to be non-free due to
 additional statement to MIT license (The Software shall be used for Good,
 not Evil.)
 .
 This patchs stubs out JSMin usage. Instead uncompressed JS will be
 returned. This should be ok since it is not default compressor at all.
Bug: https://github.com/cyberdelia/django-pipeline/issues/99
Author: Dmitry Nezhevenko <dion@dion.org.ua>
--- django-pipeline-1.2.2.orig/pipeline/compressors/jsmin.py
+++ django-pipeline-1.2.2/pipeline/compressors/jsmin.py
@@ -7,5 +7,9 @@ class JSMinCompressor(CompressorBase):
     (http://pypi.python.org/pypi/jsmin/).
     """
     def compress_js(self, js):
-        from jsmin import jsmin
-        return jsmin(js)
+        try:
+            from jsmin import jsmin
+            return jsmin(js)
+        except ImportError:
+            # JSMin is not available
+            return js
