Пример #1
0
from django.utils.translation import ugettext_lazy as _

from mayan.apps.dependencies.classes import BinaryDependency

from .settings import setting_pdftotext_path

BinaryDependency(
    help_text=_(
        'Utility from the poppler-utils package used to text content '
        'from PDF files.'
    ), label='PDF to text', module=__name__, name='pdftotext',
    path=setting_pdftotext_path.value
)
Пример #2
0
from mayan.apps.dependencies.classes import BinaryDependency, PythonDependency

from .backends.tesseract import Tesseract

tesseract = Tesseract(auto_initialize=False)
tesseract.read_settings()

BinaryDependency(copyright_text='''
        The code in this repository is licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at

           http://www.apache.org/licenses/LICENSE-2.0

        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.
    ''',
                 help_text=_('Free Open Source OCR Engine'),
                 label='Tesseract',
                 module=__name__,
                 name='tesseract',
                 path=tesseract.tesseract_binary_path)

PythonDependency(
    copyright_text='''
        PyOCR is released under the GPL v3+.
        Copyright belongs to the authors of each piece of code
        (see the file AUTHORS for the contributors list, and
        git blame to know which lines belong to which author).
Пример #3
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from mayan.apps.dependencies.classes import BinaryDependency, PythonDependency

from .backends.python import pdfinfo_path, pdftoppm_path
from .classes import libreoffice_path

BinaryDependency(label='LibreOffice',
                 module=__name__,
                 name='libreoffice',
                 path=libreoffice_path)
BinaryDependency(
    label='PDF Info',
    help_text=_(
        'Utility from the poppler-utils package used to inspect PDF files.'),
    module=__name__,
    name='pdfinfo',
    path=pdfinfo_path)
BinaryDependency(
    label='PDF to PPM',
    help_text=_('Utility from the popper-utils package used to extract pages '
                'from PDF files into PPM format images.'),
    module=__name__,
    name='pdftoppm',
    path=pdftoppm_path)
PythonDependency(
    copyright_attribute='PIL.__doc__',
    module=__name__,
    name='Pillow',
Пример #4
0
from mayan.apps.dependencies.classes import (BinaryDependency,
                                             PythonDependency)
from mayan.apps.dependencies.environments import environment_testing

from .literals import DEFAULT_FIREFOX_GECKODRIVER_PATH

BinaryDependency(environment=environment_testing,
                 label='firefox-geckodriver',
                 module=__name__,
                 name='geckodriver',
                 path=DEFAULT_FIREFOX_GECKODRIVER_PATH)
PythonDependency(environment=environment_testing,
                 module=__name__,
                 name='coverage',
                 version_string='==5.1')
PythonDependency(environment=environment_testing,
                 module=__name__,
                 name='coveralls',
                 version_string='==2.0.0')
PythonDependency(environment=environment_testing,
                 module=__name__,
                 name='django-test-migrations',
                 version_string='==0.2.0')
# Mock is set to production so that it is available in the Docker image
# and allows running the test suit in production.
PythonDependency(module=__name__, name='mock', version_string='==4.0.2')
PythonDependency(environment=environment_testing,
                 module=__name__,
                 name='selenium',
                 version_string='==3.141.0')
PythonDependency(environment=environment_testing,
Пример #5
0
from django.utils.translation import ugettext_lazy as _

from mayan.apps.dependencies.classes import BinaryDependency, PythonDependency

from .backends.python_gnupg import gpg_path

BinaryDependency(label='GNU privacy guard',
                 help_text=_('GNU privacy guard - a PGP implementation.'),
                 module=__name__,
                 name='gnupg1',
                 path=gpg_path)
PythonDependency(copyright_text='''
        Copyright (c) 2008-2014 by Vinay Sajip.
        All rights reserved.

        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:

            * Redistributions of source code must retain the above copyright notice,
              this list of conditions and the following disclaimer.
            * Redistributions in binary form must reproduce the above copyright notice,
              this list of conditions and the following disclaimer in the documentation
              and/or other materials provided with the distribution.
            * The name(s) of the copyright holder(s) may not be used to endorse or
              promote products derived from this software without specific prior
              written permission.

        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) "AS IS" AND ANY EXPRESS OR
        IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
        MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
        EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
Пример #6
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from mayan.apps.dependencies.classes import BinaryDependency

from .drivers.exiftool import EXIFToolDriver

exiftool = EXIFToolDriver(auto_initialize=False)
exiftool.read_settings()

BinaryDependency(help_text=_(
    'Library and program to read and write meta information in multimedia '
    'files.'),
                 module=__name__,
                 name='exiftool',
                 path=exiftool.exiftool_path)
Пример #7
0
from django.utils.translation import ugettext_lazy as _

from mayan.apps.dependencies.classes import (BinaryDependency,
                                             JavaScriptDependency,
                                             PythonDependency)

from .settings import setting_scanimage_path

BinaryDependency(
    label='SANE scanimage',
    help_text=_(
        'Utility provided by the SANE package. Used to control the scanner '
        'and obtained the scanned document image.'),
    module=__name__,
    name='scanimage',
    path=setting_scanimage_path.value)
JavaScriptDependency(module=__name__, name='dropzone', version_string='=5.4.0')
PythonDependency(module=__name__, name='flanker', version_string='==0.9.11')