code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>notify-python</Name>
        <Homepage>http://www.galago-project.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Python bindings for libnotify</Summary>
        <Description>notify-python are Python bindings for the Galago project's notification library libnotify.</Description>
        <Archive sha1sum="0e2b8525b1aabf0924c5efb53ced6aa429240ed0" type="targz">http://galago-project.org/files/releases/source/notify-python/notify-python-0.1.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libnotify-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>python-gtk-devel</Dependency>
            <Dependency>gtk2-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">link-with-python.patch</Patch>
            <Patch level="1">notify-python-0.1.1-fix-GTK-symbols.patch</Patch>
            <Patch level="1">libnotify0.7.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>notify-python</Name>
        <RuntimeDependencies>
            <Dependency>atk</Dependency>
            <Dependency>gtk2</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>python</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>libnotify</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/share/pygtk/2.0/defs</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-24</Date>
            <Version>0.1.1</Version>
            <Comment>Rebuild for new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.1.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-09</Date>
            <Version>0.1.1</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>notify-python</Name>
        <Description xml:lang="tr"> Galago programlar arası duruş/görünüm bilgisini iletecek şekilde dizayn edilmiş bir masaüstü görüntü çerçevesidir.  Daha basitçe açıklamak gerekirse, bir anlık ileti programından (gaim gibi) veya benzeri başka programlardan kimlerin çevrimiçi, boş/uzakta olduğu bilgisini alıp diğer programların (örn. Evolution) bu bilgiyi kullanmasını sağlar.</Description>
        <Description xml:lang="fr">Galago est un framework (cadre de développement) de présence bureautique, conçu pour transmettre des informations de présences entre programmes. Pour faire simple, il recense les présents et agrège les informations concernant leur état depuis un logiciel de messagerie instantannée (tel que gaim) ou de programmes similaires et permet à d'autre logiciels (tels que Evolution) d'avoir accès à cette information.</Description>
        <Summary xml:lang="tr">libnotify'ın Python bağlayıcıları</Summary>
        <Description xml:lang="es">Galego es un entorno de presencia de escritorio, diseñado para transmitir informaciones entre programas. En términos sencillos: Puede tomar información sobre quien está en linea, y el estado ausente/inactivo de un programa de mensajería instantánea, como pidgin o similar, y pasar la información a otros programas (ejemplo Evolution) para hacer uso de ello.</Description>
    </Source>
</PISI>

repo_name: ayhanyalcinsoy/main


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools

WorkDir="pip-%s" % get.srcVERSION()

def setup():
    pythonmodules.compile()

def install():
    pythonmodules.install()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>pip</Name>
        <Homepage>https://pypi.python.org/pypi/pip</Homepage>
        <Packager>
            <Name>Yusuf Aydemir</Name>
            <Email>Yusuf.aydemir@istanbul.com</Email>
        </Packager>
        <Summary>The PyPA recommended tool for installing Python packages</Summary>
        <Description>The PyPA recommended tool for installing Python packages</Description>
        <License>MIT</License>
        <Archive sha1sum="39b5840f6a9e6888d56a78beb447a064aeaf1592" type="targz">https://github.com/pypa/pip/archive/9.0.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-setuptools</Dependency>
            <Dependency>python-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>pip</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <RuntimeDependencies>
            <Dependency>python-setuptools</Dependency>
        </RuntimeDependencies>
    </Package>

    <History>
        <Update release="6">
            <Date>2017-03-19</Date>
            <Version>9.0.1</Version>
            <Comment>Rebuild</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2017-01-24</Date>
            <Version>9.0.1</Version>
            <Comment>Version Bump</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2016-08-22</Date>
            <Version>8.1.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Ali Şafak</Name>
            <Email>aliemresafak@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-06</Date>
            <Version>8.1.2</Version>
            <Comment>version bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-30</Date>
            <Version>8.1.2</Version>
            <Comment>version bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-28</Date>
            <Version>8.1.1</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import autotools

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>pyparted</Name>
        <Homepage>http://people.redhat.com/dcantrel/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>library</IsA>
        <Summary>Python bindings for parted</Summary>
        <Description>pyparted is the python module which enables to use GNU Parted package from python. Using python with this module, programmers can create, destroy, resize, check and copy partitions, and the file systems on them.</Description>
        <Archive sha1sum="ee5f3ec70b0cc5c4704771484e439699e15191c5" type="targz">https://github.com/rhinstaller/pyparted/archive/v3.10.7.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-decorator</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency versionFrom="3.2">parted-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>pyparted</Name>
        <RuntimeDependencies>
            <Dependency>python-decorator</Dependency>
            <Dependency>parted</Dependency>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-03-21</Date>
            <Version>3.10.7</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>3.10.7</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.10.5</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-10</Date>
            <Version>3.10.5</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>pyparted</Name>
        <Summary xml:lang="tr">Disk bölümleme tablolarını yönetmek için kullanılan parted kütüphanesine erişim sağlayan Python modülü.</Summary>
        <Description xml:lang="tr">pyparted, GNU Parted uygulamasının python programlama diliyle kullanılabilmesi için gerekli olan kütüphanedir. Bu modülü kullanan programcılar, python ile yeni disk bölümleri ya da dosya sistemleri oluşturabilir, bunları silebilir, yeniden boyutlandırabilir, kontrol edebilir ve kopyalayabilir.</Description>
        <Description xml:lang="fr">pyparted est un module python permettant d'utiliser le paquet GNU Parted depuis python. À l'aide de ce module, les programmeurs peuvent depuis python détruire, re-dimensionner, vérifier et copier des partitions et les systèmes de fichier présents dessus.</Description>
    </Source>
</PISI>


code:
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    shelltools.cd("pyqt5")

    shelltools.system("python config.py")

def build():
    shelltools.cd("pyqt5")
    autotools.make()

def install():
    shelltools.cd("pyqt5")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("README.md")


code:
--- configy.py	2015-11-05 04:35:43.000000000 +0200
+++ pyqt5/config.py	2015-11-05 04:37:20.021862391 +0200
@@ -38,8 +38,8 @@

 # Run SIP to generate the code.  Note that we tell SIP where to find the qt
 # module's specification files using the -I flag.
-os.system(" ".join([config.sip_bin, "-c", ".", "-b", build_file, "-I",
-                    config.default_sip_dir+"/PyQt5", qt_sip_flags, "qtermwidget.sip"]))
+os.system(" ".join(["/usr/bin/py2sip", "-c", ".", "-b", build_file, "-I",
+                    config.default_sip_dir+"/Py2Qt5", qt_sip_flags, "qtermwidget.sip"]))
 		    #pyqt_sip_dir yok  config.pyqt_sip_dir

 # We are going to install the SIP specification file for this module and


code:
<PISI>
    <Source>
        <Name>pyqtermwidget5</Name>
        <Homepage>http://gitorious.org/qtermwidget</Homepage>
        <Packager>
            <Name>Harun Gültekin</Name>
            <Email>hrngultekin@gmail.com</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Python binding of terminal widget for Qt
        <Description>A simple terminal widget for using with PyQt based applications</Description>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>python-qt5-devel</Dependency>
            <Dependency>python-sip</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>qtermwidget5-devel</Dependency>
        </BuildDependencies>
        <Archive sha1sum="e61075bb632bd0e028127c2295414e1467c5b1f5" type="targz">https://github.com/ertugerata/pyqtermwidget5/archive/v0.1.1.tar.gz</Archive>
        <Patches>
            <Patch>py2config.patch</Patch>
        </Patches>
    </Source>
    <Package>
        <Name>pyqtermwidget5</Name>
        Python binding of terminal widget for Qt
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>qt5-base</Dependency>
            <Dependency>qtermwidget5</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="4">
            <Date>2017-03-21</Date>
            <Version>0.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>0.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-28</Date>
            <Version>0.1</Version>
            <Comment>Rebuild</Comment>
            <Name>Harun Gültekin</Name>
            <Email>hrngultekin@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2014-06-19</Date>
            <Version>0.1</Version>
            <Comment>First release</Comment>
            <Name>Harun Gültekin</Name>
            <Email>hrngultekin@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Source>
        <Name>pyqtermwidget5</Name>
        <Summary xml:lang="tr">PyQt5 tabanlı uygulamalar için basit bir terminal modulü</Summary>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

#WorkDir = "Babel-%s" % get.srcVERSION()

htmltxt = "%s/%s/html" % (get.docDIR(), get.srcNAME())

def build():
    shelltools.system("python setup.py import_cldr")
    #pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.dohtml("docs/")
   #pisitools.insinto(htmltxt, "docs/*.txt")
    pisitools.dodoc("LICENSE","AUTHORS","README*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-Babel</Name>
        <Homepage>http://babel.pocoo.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        <Summary>A collection of tools for internationalizing Python applications</Summary>
        <Description>Babel is composed of two major parts: 1) tools to build and work with gettext message catalogs , 2) a Python interface to the CLDR (Common Locale Data Repository), providing access to various locale display names, localized number and date formatting, etc.</Description>
        <Archive sha1sum="291c9e107ac203593ad83a04799c4cc2c375cb03" type="targz">https://github.com/python-babel/babel/archive/2.3.4.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>python-pytz</Dependency>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-Babel</Name>
        <RuntimeDependencies>
            <Dependency>python-pytz</Dependency>
            <Dependency>python-setuptools</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/python-Babel</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-01-29</Date>
            <Version>2.3.4</Version>
            <Comment>First release</Comment>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-Babel</Name>
        <Summary xml:lang="tr">Python uygulamalarını uluslararasılaştırmak için bir takım koleksiyonu</Summary>
        <Description xml:lang="tr">Babel temelde iki parçadan oluşur: 1) gettext mesaj kataloglarıyla çalışmak ve onları derlemek için araçlar 2) CLDR(Common Locale Data Repository), Genel Yerel Veri Deposuna, çeşitli yerel gösterim isimlerine ulaşımı sağlamak, yerelleştirilmiş numara ve tarih biçimlerini desteklemek gibi özellikler sağlayan bir python arayüzü.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

examples = "%s/%s/examples" % (get.docDIR(), get.srcNAME())

WorkDir = "Jinja2-%s" % get.srcVERSION()

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.insinto(examples, "examples/*")

    #Create docs with python-Sphinx
    #shelltools.cd("docs")
    #autotools.make("html")
    #shelltools.cd("..")
    #pisitools.dohtml("Jinja2-%s/docs/_build/html/*" % get.srcVERSION())
    pisitools.dodoc("CHANGES")


code:
Description: drop next import from docs/jinjaext.py
 next is not available in jinja2/utils.py and all Python versions supported by
 Jessie already support this function, no need for backwards compatible wrapper
Author: Piotr Ożarowski <piotr@debian.org>
--- jinja2-2.7.orig/docs/jinjaext.py
+++ jinja2-2.7/docs/jinjaext.py
@@ -23,7 +23,7 @@ from pygments.style import Style
 from pygments.token import Keyword, Name, Comment, String, Error, \
      Number, Operator, Generic
 from jinja2 import Environment, FileSystemLoader
-from jinja2.utils import next
+#from jinja2.utils import next

 def parse_rst(state, content_offset, doc):


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-Jinja2</Name>
        <Homepage>http://jinja.pocoo.org/2/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>app:console</IsA>
        <Summary>A small but fast and easy to use stand-alone template engine written in pure python</Summary>
        <Description>Jinja2 is the rewritten version of Jinja, sandboxed template engine written in pure Python. It provides a Django like non-XML syntax and compiles templates into executable python code. It's basically a combination of Django templates and python code.</Description>
        <Archive sha1sum="a3129c140d34ae565a556e48db40772df3536b23" type="targz">https://pypi.python.org/packages/71/59/d7423bd5e7ddaf3a1ce299ab4490e9044e8dfd195420fc83a24de9e60726/Jinja2-2.9.5.tar.gz</Archive>
        <BuildDependencies>
            <!-- For creating documentations-->
            <!--<Dependency>python-sphinx</Dependency>-->
            <Dependency>python-setuptools</Dependency>
            <Dependency>python-MarkupSafe</Dependency>
        </BuildDependencies>
        <Patches>
<!--             <Patch level="1">drop_next_import_from_docs-jinjaext.patch</Patch> -->
        </Patches>
    </Source>

    <Package>
        <Name>python-Jinja2</Name>
        <Files>
            <Path fileType="library">/usr/lib/python*</Path>
            <Path fileType="doc">/usr/share/doc/python-Jinja2/LICENSE</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-Jinja2-docs</Name>
        <Files>
            <Path fileType="doc">/usr/share/doc/python-Jinja2</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-29</Date>
            <Version>2.9.5</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.7.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-02-27</Date>
            <Version>2.7.2</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-Jinja2</Name>
        Küçük, hızlı ve kullanımı kolay, sadece python ile yazılmış bir bağımsız şablon üreteci
        <Description xml:lang="tr">Jinja2, sadece python ile yazılmış bir şablon üreteci olan Jinja'nın yeniden yazılmış bir versiyonudur. Django benzeri XML-olmayan bir sözdizimi sağlar ve şablonları derleyip çalıştırılabilir python programları haline getirir. Temel olarak Django şablonları ve python kodunun birleşimi bir programdır.</Description>
    </Source>

    <Package>
        <Name>python-Jinja2-docs</Name>
        python-Jinja2 için belgelendirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get
from pisi.actionsapi import shelltools

shelltools.export("PYTHONDONTWRITEBYTECODE", "1")

WorkDir = "MarkupSafe-%s" % get.srcVERSION()

def build():
    pythonmodules.compile()

def check():
    pythonmodules.compile("test")

def install():
    pythonmodules.install()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-MarkupSafe</Name>
        <Homepage>http://pypi.python.org/pypi/MarkupSafe</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        <Summary>Implements a XML/HTML/XHTML Markup safe string for Python</Summary>
        <Description>python-MarkupSafe, implements a unicode subclass that supports HTML strings.</Description>
        <Archive sha1sum="cd5c22acf6dd69046d6cb6a3920d84ea66bdf62a" type="targz">http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-MarkupSafe</Name>
        <Files>
            <Path fileType="library">/usr/lib/python2.*</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>0.23</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.23</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-29</Date>
            <Version>0.23</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-MarkupSafe</Name>
        <Summary xml:lang="tr">XML/HTML/XHTML markup dilleri için güvenli python karakter dizeleri gerçekleştirimi</Summary>
        <Description xml:lang="tr">python-MarkupSafe, HTML karakter dizeleri için unicode bir alt sınıf gerçekleştirimi sağlar.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "PyYAML-%s" % get.srcVERSION()

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-PyYAML</Name>
        <Homepage>http://pyyaml.org/wiki/PyYAML</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>The next generation YAML parser and emitter for Python</Summary>
        <Description>python-pyyaml is the next generation YAML parser and emitter for Python.</Description>
        <Archive sha1sum="cb7fd3e58c129494ee86e41baedfec69eb7dafbe" type="targz">http://pyyaml.org/download/pyyaml/PyYAML-3.12.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libyaml-devel</Dependency>
            <Dependency>python-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-PyYAML</Name>
        <RuntimeDependencies>
            <Dependency>python</Dependency>
            <Dependency>libyaml</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-01-25</Date>
            <Version>3.12</Version>
            <Comment>Rebuild for new toolchain</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-16</Date>
            <Version>3.12</Version>
            <Comment>Version Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.11</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-27</Date>
            <Version>3.11</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-pyyaml</Name>
        <Summary xml:lang="tr">Python için yeni nesil YAML ayrıştırıcısı</Summary>
        <Description xml:lang="tr">python-pyyaml python için yeni nesil YAML ayrıştırıcısıdır.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get

WorkDir="%s-%s" % (get.srcNAME().split("-")[1], get.srcVERSION())

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    #pisitools.dohtml("docs/build/*")
    #pisitools.insinto("/usr/share/doc/%s/src/" % get.srcNAME(),"docs/src/*")
    pisitools.doman("doc/pygmentize.1")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-Pygments</Name>
        <Homepage>http://pygments.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        A syntax highlighting package written in Python
        <Description>python-Pygments is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code.</Description>
        <Archive sha1sum="5c6714bd6fd950c1478889f7b72fc7f6771d5163" type="targz">https://pypi.python.org/packages/71/2a/2e4e77803a8bd6408a2903340ac498cb0a2181811af7c9ec92cb70b0308a/Pygments-2.2.0.tar.gz</Archive>
    </Source>

    <Package>
        <Name>python-Pygments</Name>
        <RuntimeDependencies>
            <Dependency>python-setuptools</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/python*</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-Pygments-docs</Name>
        Documentation files for python-Pygments
        <Files>
            <Path fileType="doc">/usr/share/doc/python-Pygments</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>2.2.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.6</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2013-12-07</Date>
            <Version>1.6</Version>
            <Comment>First release</Comment>
            <Name>Burak Fazıl Ertürk</Name>
            <Email>burakerturk@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-Pygments</Name>
        Python dilinde yazılmış bir sözdizimi belirtme aracı
        <Description xml:lang="tr">python-Pygments, kaynak kodunu güzelleştirmek ihtiyacı duyulan forum sistemleri, wikiler ve diğer uygulamalar gibi her çeşit yazılımda kullanılmak için yazılmış olan genel bir sözdizimi belirtme aracıdır.</Description>
    </Source>

    <Package>
        <Name>python-Pygments-docs</Name>
        python-Pygments için belgelendirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get

WorkDir = "Unidecode-%s" % get.srcVERSION()

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-Unidecode</Name>
        <Homepage>http://pypi.python.org/pypi/Unidecode/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>Artistic</License>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>US-ASCII transliterations of Unicode text</Summary>
        <Description>python-Unidecode provides ASCII transliterations of Unicode text. This is a Python port of Text::Unidecode Perl module.</Description>
        <Archive sha1sum="cb03212d39806a6cbb1eadfb3f3a66c86af5a075" type="targz">https://pypi.python.org/packages/ba/64/410af95d27f2a8824112d17ed41ea7ce6d2cbc8a4832c2e548d3408fad0a/Unidecode-0.04.20.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-Unidecode</Name>
        <RuntimeDependencies>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>0.04.20</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.04.18</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-09</Date>
            <Version>0.04.18</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-Unidecode</Name>
        <Summary xml:lang="tr">Unicode karakterlerinin US-ASCII harf çevirileri</Summary>
        <Description xml:lang="tr">python-Unidecode, Unicode karakterlerinin US-ASCII harf çevirilerini sağlar. Text::Unidecode Perl modülünün Python diliyle yazılmış halidir.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.dodoc("LICENSE*", "MANIFEST*", "PKG-INFO", "NEWS*", "README*")


code:
<PISI>
    <Source>
        <Name>python-argparse</Name>
        <Homepage>https://pypi.python.org/pypi/argparse</Homepage>
        <Packager>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Packager>
        <License>apache</License>
        <IsA>app:console</IsA>
        Python command-line parsing library
        <Description>The argparse module makes it easy to write user friendly command line interfaces.</Description>
        <Archive sha1sum="50f36429b2989461ee541093e7229257ee950c07" type="targz">https://pypi.python.org/packages/18/dd/e617cfc3f6210ae183374cd9f6a26b20514bbb5a792af97949c5aacddf0f/argparse-1.4.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-argparse</Name>
        Python command-line parsing library
        <RuntimeDependencies>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-24</Date>
            <Version>1.4.0</Version>
            <Comment>Rebuild for new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.4.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-06-06</Date>
            <Version>1.4.0</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.dodoc("PKG-INFO")


code:
<PISI>
    <Source>
        <Name>python-backports-ssl-match-hostname</Name>
        <Homepage>https://pypi.python.org/pypi/backports.ssl_match_hostname</Homepage>
        <Packager>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Packager>
        <License>PSF-2.2</License>
        <IsA>app</IsA>
        The ssl.match_hostname() function from Python 3.4
        <Description>The ssl.match_hostname() function from Python 3.4</Description>
        <Archive sha1sum="0567c136707a5f53b95aa793b79cc8d5c61d8e22" type="targz">https://pypi.python.org/packages/76/21/2dc61178a2038a5cb35d14b61467c6ac632791ed05131dda72c20e7b9e23/backports.ssl_match_hostname-3.5.0.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-backports-ssl-match-hostname</Name>
        The ssl.match_hostname() function from Python 3.4
        <RuntimeDependencies>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/python*</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-01-25</Date>
            <Version>3.5.0.1</Version>
            <Comment>Version bump</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-06-15</Date>
            <Version>3.4.0.2</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get
from pisi.actionsapi import shelltools

shelltools.export("PYTHONDONTWRITEBYTECODE", "1")

def install():
    pythonmodules.install()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-beaker</Name>
        <Homepage>http://beaker.groovie.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        <Summary>A Session and Caching library with WSGI Middleware</Summary>
        <Description>python-beaker is a web session and general caching library that includes WSGI middleware for use in web applications.</Description>
        <Archive sha1sum="380055121a6d4740c0831333a1d573545bee918c" type="targz">https://github.com/bbangert/beaker/archive/1.8.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-beaker</Name>
        <Files>
            <Path fileType="library">/usr/lib/</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>1.8.1</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.6.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2013-11-04</Date>
            <Version>1.6.4</Version>
            <Comment>First release</Comment>
            <Name>Erdinç Gültekin</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-beaker</Name>
        <Summary xml:lang="tr">Oturum ve önbellekleme kitaplığı</Summary>
        <Description xml:lang="tr">python-beaker, web programları için oturum ve genel önbellekleme fonksiyonlarını içeren bir kitaplıktır.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools

shelltools.export("JOBS", get.makeJOBS().replace("-j", ""))

def setup():
    shelltools.system("python waf configure --prefix=/usr")

def build():
    shelltools.system("python waf build -v")

def install():
    shelltools.system("DESTDIR=%s python waf install" % get.installDIR())

    pisitools.dodoc("AUTHORS", "COPYING", "README","COPYING-*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-cairo</Name>
        <Homepage>http://cairographics.org/pycairo</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Python wrapper for cairo graphics library
        <Description>Pycairo is set of Python bindings for the cairo graphics library.</Description>
        <Archive sha1sum="2efa8dfafbd6b8e492adaab07231556fec52d6eb" type="tarbz2">http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>cairo-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>libtool</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-cairo</Name>
        <RuntimeDependencies>
            <Dependency>cairo</Dependency>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-cairo-devel</Name>
        Development files for python-cairo
        <RuntimeDependencies>
            <Dependency release="current">python-cairo</Dependency>
            <Dependency>cairo-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>1.10.0</Version>
            <Comment>Rebuild for new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.10.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-06-01</Date>
            <Version>1.10.0</Version>
            <Comment>First release</Comment>
            <Name>Burak Fazıl Ertürk </Name>
            <Email>burakerturk@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-cairo</Name>
        Cairo vektörel grafik kitaplığı için Python bağlayıcıları
        wrapper (version enrobée) Python de la librairie de graphisme vectoriel cairo.
    </Source>

    <Package>
        <Name>python-cairo-devel</Name>
        python-cairo için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.dodoc("CHANGELOG*", "LICENSE*", "MANIFEST*", "PKG-INFO", "README*")


code:
<PISI>
    <Source>
        <Name>python-colorama</Name>
        <Homepage>https://pypi.python.org/pypi/colorama</Homepage>
        <Packager>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>app:console</IsA>
        Cross-platform colored terminal text.
        <Description>Python API for cross-platform colored terminal text.</Description>
        <Archive type="targz" sha1sum="7310d6ddf680c524ad6b16f673a77a9defb5766e">https://pypi.python.org/packages/f0/d0/21c6449df0ca9da74859edc40208b3a57df9aca7323118c913e58d442030/colorama-0.3.7.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-colorama</Name>
        Cross-platform colored terminal text.
        <RuntimeDependencies>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>0.3.7</Version>
            <Comment>Rebuild for new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.3.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-06-06</Date>
            <Version>0.3.7</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import get

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("COPYING", "NEWS", "README", "TODO", "examples/cupstree.py")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-cups</Name>
        <Homepage>http://cyberelk.net/tim/software/pycups</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>Python interface to the CUPS API</Summary>
        <Description>python-cups contains python bindings to wrap the CUPS API.</Description>
        <Archive sha1sum="561dc41a0025ad3467e7d151ee2ce84e5e564f9d" type="tarbz2">http://cyberelk.net/tim/data/pycups/pycups-1.9.73.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>cups-devel</Dependency>
            <Dependency>python-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-cups</Name>
        <RuntimeDependencies>
            <Dependency>cups</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>1.9.73</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.9.72</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-06-21</Date>
            <Version>1.9.72</Version>
            <Comment>First release</Comment>
            <Name>Hakan Yıldız</Name>
            <Email>hknyldz93@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-cups</Name>
        <Summary xml:lang="tr">CUPS programlama arayüzü için Python desteği</Summary>
        <Description xml:lang="tr">python-cups, CUPS programlama arayüzü için Python bağlayıcıları içeren bir pakettir.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools

def check():
    shelltools.system("nosetests --with-doctest -e documentation")

def install():
    pythonmodules.install()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-decorator</Name>
        <Homepage>http://www.phyast.pitt.edu/~micheles/python/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        <Summary>Python module to simplify the usage of decorators</Summary>
        <Description>python-decorator simplifies the usage of decorators for the average programmer.</Description>
        <Archive sha1sum="f2ddc2de311b8d2afae7bba8efec6131a7f4b986" type="targz">https://pypi.python.org/packages/cc/ac/5a16f1fc0506ff72fcc8fd4e858e3a1c231f224ab79bb7c4c9b2094cc570/decorator-4.0.11.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-nose</Dependency>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-decorator</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-03-05</Date>
            <Version>4.0.11</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>4.0.11</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>4.0.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-04</Date>
            <Version>4.0.2</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-decorator</Name>
        <Summary xml:lang="tr">Dekoratör kullanımını kolaylaştıran python modulü</Summary>
        <Description xml:lang="tr">python-decorator, ortalama bir Python programcısı için dekoratör kullanımını basitleştirir.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.dodoc("CONTRIBUTING*", "LICENSE", "MAINTAINERS", "MANIFEST*", "README*")


code:
<PISI>
    <Source>
        <Name>python-docker-py</Name>
        <Homepage>https://github.com/dotcloud/docker-py</Homepage>
        <Packager>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Packager>
        <License>apache</License>
        <IsA>app:console</IsA>
        Python client for Docker.
        <Description>A Python library for the Docker Remote API. It does everything the docker command does, but from within Python – run containers, manage them, pull/push images, etc.</Description>
        <Archive sha1sum="653bad33f42de753d90b9ced35c621eeb236a960" type="targz">https://github.com/docker/docker-py/archive/2.0.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>python-setuptools</Dependency>
            <Dependency>python-websocket-client</Dependency>
            <Dependency>python-six</Dependency>
            <Dependency>python-requests</Dependency>
            <Dependency>pip</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>python-docker-py</Name>
        Python client for Docker.
        <RuntimeDependencies>
            <Dependency>python</Dependency>
            <Dependency>python-websocket-client</Dependency>
            <Dependency>python-six</Dependency>
            <Dependency>python-requests</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>2.0.2</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.8.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-06-06</Date>
            <Version>1.8.1</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-enchant</Name>
        <Homepage>http://www.rfk.id.au/software/pyenchant</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv3</License>
        <IsA>library</IsA>
        <Summary>Spellchecking library for Python</Summary>
        <Description>python-enchant is an efficient Python module for Enchant spellchecker.</Description>
        <Archive sha1sum="526f06a1573d234e00ac5c7e90c342975c3a6dee" type="targz">https://pypi.python.org/packages/73/73/49f95fe636ab3deed0ef1e3b9087902413bcdf74ec00298c3059e660cfbb/pyenchant-1.6.8.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>enchant-devel</Dependency>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-enchant</Name>
        <RuntimeDependencies>
            <Dependency>enchant</Dependency>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-01-25</Date>
            <Version>1.6.8</Version>
            <Comment>Rebuild for new toolchain.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-11-24</Date>
            <Version>1.6.8</Version>
            <Comment>First Release.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-enchant</Name>
        <Summary xml:lang="tr">Python için yazım denetimi kütüphanesi</Summary>
        <Description xml:lang="tr">python-enchant, Enchant yazım denetleyicisi için hızlı bir Python modulüdür.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "pygtk-%s" % (get.srcVERSION())

def setup():
    shelltools.unlink("py-compile" )
    shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())

    autotools.configure("--prefix=/usr \
                         --enable-thread \
                         --enable-numpy")

    shelltools.touch("%s/style.css" % get.curDIR())
    pisitools.dosed("docs/Makefile", "CSS_FILES = .*", "CSS_FILES = %s/style.css" % get.curDIR())

    pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "MAPPING", "NEWS", "README", "THREADS", "TODO")


code:
From eca72baa5616fbe4dbebea43c7e5940847dc5ab8 Mon Sep 17 00:00:00 2001
From: "Owen W. Taylor" <otaylor@fishsoup.net>
Date: Tue, 27 Sep 2011 00:17:52 -0400
Subject: Fix leaks of Pango objects

Gtk.PrintContext.create_pango_context()
Gtk.PrintContext.create_pango_layout()
pangocairo.CairoContext.create_layout()

were leaking the objects they returned.

https://bugzilla.gnome.org/show_bug.cgi?id=660216

diff --git a/gtk/gtk-2.10.defs b/gtk/gtk-2.10.defs
index 69c7e0c..faa45e1 100644
--- a/gtk/gtk-2.10.defs
+++ b/gtk/gtk-2.10.defs
@@ -1388,12 +1388,14 @@
 (define-method create_pango_context
   (of-object "GtkPrintContext")
   (c-name "gtk_print_context_create_pango_context")
+  (caller-owns-return #t)
   (return-type "PangoContext*")
 )

 (define-method create_pango_layout
   (of-object "GtkPrintContext")
   (c-name "gtk_print_context_create_pango_layout")
+  (caller-owns-return #t)
   (return-type "PangoLayout*")
 )

diff --git a/pangocairo.override b/pangocairo.override
index bb923e6..5101107 100644
--- a/pangocairo.override
+++ b/pangocairo.override
@@ -118,11 +118,16 @@ _wrap_pango_cairo_update_context(PyGObject *self, PyObject *args, PyObject *kwar
 static PyObject *
 _wrap_pango_cairo_create_layout(PyGObject *self)
 {
-    PangoLayout *ret;
+    PangoLayout *layout;
+    PyObject *ret;

-    ret = pango_cairo_create_layout(PycairoContext_GET(self));
+    layout = pango_cairo_create_layout(PycairoContext_GET(self));
     /* pygobject_new handles NULL checking */
-    return pygobject_new((GObject *)ret);
+    ret = pygobject_new((GObject *)layout);
+    if (layout)
+	g_object_unref(layout);
+
+    return ret;
 }

 static PyObject *
--
cgit v0.10.2


code:
diff --git a/gtk/gtkmodule.c b/gtk/gtkmodule.c
index c0e1493..aa8cf10 100644
--- a/gtk/gtkmodule.c
+++ b/gtk/gtkmodule.c
@@ -227,8 +227,12 @@ init_gtk(void)
     pygtk_add_stock_items(d);

     /* extension API */
-    PyDict_SetItemString(d, "_PyGtk_API",
-			 o=PyCObject_FromVoidPtr(&functions, NULL));
+#if PY_VERSION_HEX >= 0x02070000
+    o = PyCapsule_New(&functions, "gtk._gtk._PyGtk_API", NULL);
+#else
+    o = PyCObject_FromVoidPtr(&functions, NULL);
+#endif
+    PyDict_SetItemString(d, "_PyGtk_API", o);
     Py_DECREF(o);

     PyGtkDeprecationWarning = PyErr_NewException("gtk.GtkDeprecationWarning",
diff --git a/gtk/pygtk.h b/gtk/pygtk.h
index 573c3b9..e4c680f 100644
--- a/gtk/pygtk.h
+++ b/gtk/pygtk.h
@@ -60,6 +60,18 @@ struct _PyGtk_FunctionStruct *_PyGtk_API;

 /* a function to initialise the pygtk functions */
+
+/* Python 2.7 introduced the PyCapsule API and deprecated the CObject API */
+#if PY_VERSION_HEX >= 0x02070000
+#define init_pygtk() G_STMT_START { \
+    void *capsule = PyCapsule_Import("gtk._gtk._PyGtk_API", 0); \
+    if (!capsule) { \
+        return; \
+    } \
+    _PyGtk_API = (struct _PyGtk_FunctionStruct*)capsule; \
+} G_STMT_END
+#else /* PY_VERSION_HEX */
+/* Python 2.6 and earlier use the CObject API */
 #define init_pygtk() G_STMT_START { \
     PyObject *pygtk = PyImport_ImportModule("gtk"); \
     if (pygtk != NULL) { \
@@ -79,6 +91,7 @@ struct _PyGtk_FunctionStruct *_PyGtk_API;
         return; \
     } \
 } G_STMT_END
+#endif /* PY_VERSION_HEX */

 #endif


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-gtk</Name>
        <Homepage>http://www.pygtk.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        GTK+ bindings for Python
        <Description>python-gtk lets you to easily create programs with a graphical user interface using the Python programming language and GTK+ library.</Description>
        <Archive sha1sum="344e6a32a5e8c7e0aaeb807e0636a163095231c2" type="tarbz2">mirrors://gnome/pygtk/2.24/pygtk-2.24.0.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>cairo-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>libglade-devel</Dependency>
            <Dependency>python-pygobject-devel</Dependency>
            <Dependency>python-numpy</Dependency>
            <Dependency>python-cairo-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">fix-leaks-of-pango-objects.patch</Patch>
            <Patch level="1">python27.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>python-gtk</Name>
        <RuntimeDependencies>
            <Dependency>atk</Dependency>
            <Dependency>gtk2</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>libglade</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-gtk-demo</Name>
        <IsA>app:gui</IsA>
        Demo applications for python-gtk
        <RuntimeDependencies>
            <Dependency releaseFrom="current">python-gtk</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/pygtk-demo</Path>
            <Path fileType="library">/usr/lib/pygtk/2.0/pygtk-demo.py</Path>
            <Path fileType="data">/usr/lib/pygtk/2.0/demos</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-gtk-docs</Name>
        <IsA>data:doc</IsA>
        Reference documents for python-gtk
        <RuntimeDependencies>
            <Dependency releaseFrom="current">python-gtk</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-gtk-devel</Name>
        Development files for python-gtk
        <RuntimeDependencies>
            <Dependency release="current">python-gtk</Dependency>
            <Dependency>python-pygobject-devel</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>libglade-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/pygtk-codegen-2.0</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/share/pygtk</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>2.24.0</Version>
            <Comment>Rebuild for new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.24.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-04</Date>
            <Version>2.24.0</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-gtk</Name>
        Python için GTK+ bağlayıcıları
        <Description xml:lang="tr">python-gtk, Python programlama diliyle GTK+ kitaplığını kullanarak, basit grafiksel kullanıcı arayüzü oluşturmanızı sağlar.</Description>
        <Description xml:lang="fr">Bindings (liens) GTK+2 pour Python.</Description>
    </Source>

    <Package>
        <Name>python-gtk-demo</Name>
        python-gtk için demo uygulamalar
    </Package>

    <Package>
        <Name>python-gtk-docs</Name>
        python-gtk için referans belgeleri
    </Package>

    <Package>
        <Name>python-gtk-devel</Name>
        python-gtk için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.dodoc("LICENSE*", "README*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-imagesize</Name>
        <Homepage>https://github.com/shibukawa/imagesize_py</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        <Summary>Getting image size from png/jpeg/jpeg2000/gif file.</Summary>
        <Description>This module analyzes jpeg/jpeg2000/png/gif image header and return image size.</Description>
        <Archive sha1sum="b0ae3151495d8bbb207170bff7ed253d929e0dce" type="targz">https://github.com/shibukawa/imagesize_py/archive/0.7.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-imagesize</Name>
        <RuntimeDependencies>
            <Dependency>python-setuptools</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-01-29</Date>
            <Version>0.7.1</Version>
            <Comment>First release</Comment>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-imagesize</Name>
        <Summary xml:lang="tr">Png / jpeg / jpeg2000 / gif dosyasından görüntü boyutu elde etme.</Summary>
        <Description xml:lang="tr">Bu modül jpeg / jpeg2000 / png / gif resim başlığını ve dönüş resim boyutunu analiz eder.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir="Imaging-%s" % get.srcVERSION()

def install():
    pisitools.dosed("_imagingft.c", "<freetype/freetype.h>", "<freetype2/freetype.h>")
    pisitools.dosed("_imagingft.c", "<freetype/fterrors.h>", "<freetype2/fterrors.h>")
    pythonmodules.install()

    shelltools.cd("Sane")
    pythonmodules.install()
    shelltools.cd("..")

    for header in ["Imaging.h","ImPlatform.h"]:
        pisitools.insinto("/usr/include/%s" % get.curPYTHON(), "libImaging/%s" % header)

    pisitools.dodoc("README")


code:
--- Imaging-1.1.7-orig/PIL/TiffImagePlugin.py	2009-11-01 02:44:12.000000000 +0200
+++ Imaging-1.1.7/PIL/TiffImagePlugin.py	2012-11-13 03:45:11.280000132 +0200
@@ -69,7 +69,7 @@
 def il32(c,o=0):
     return ord(c[o]) + (ord(c[o+1])<<8) + (ord(c[o+2])<<16) + (ord(c[o+3])<<24)
 def ol16(i):
-    return chr(i&255) + chr(i>>8&255)
+    return chr(i>>8&255) + chr(i&255)
 def ol32(i):
     return chr(i&255) + chr(i>>8&255) + chr(i>>16&255) + chr(i>>24&255)

@@ -197,6 +197,8 @@
 }

 PREFIXES = ["MM\000\052", "II\052\000", "II\xBC\000"]
+PREFIX_TO_BYTEORDER = {"MM":"b", "II":"l"}
+BYTEORDER_TO_PREFIX = {"b":"MM", "l":"II"}

 def _accept(prefix):
     return prefix[:4] in PREFIXES
@@ -219,6 +221,8 @@
             self.o16, self.o32 = ol16, ol32
         else:
             raise SyntaxError("not a TIFF IFD")
+        self.byteorder = PREFIX_TO_BYTEORDER[self.prefix]
+
         self.reset()

     def reset(self):
@@ -749,7 +753,7 @@
 def _save(im, fp, filename):

     try:
-        rawmode, prefix, photo, format, bits, extra = SAVE_INFO[im.mode]
+        rawmode, prefix, byteorder, photo, format, bits, extra = SAVE_INFO[im.mode]
     except KeyError:
         raise IOError, "cannot write mode %s as TIFF" % im.mode


code:
--- Imaging-1.1.6.orig/PIL/GifImagePlugin.py    2006-12-03 11:37:15.000000000 +0000
+++ Imaging-1.1.6/PIL/GifImagePlugin.py 2008-10-02 14:51:43.000000000 +0100
@@ -352,6 +352,11 @@
         for i in range(maxcolor):
             s.append(chr(i) * 3)

+    if im.info.has_key('transparency'):
+        transparentIndex = im.info['transparency']
+        s.append('!' + chr(0xf9) + chr(4) + chr(1) + chr(0) + chr(0) +
+                 chr(transparentIndex) + chr(0))
+
     return s

 def getdata(im, offset = (0, 0), **params):


code:
--- Imaging-1.1.6/Sane/_sane.c.orig	2006-12-03 13:12:22.000000000 +0100
+++ Imaging-1.1.6/Sane/_sane.c	2009-02-28 11:41:19.000000000 +0200
@@ -1152,8 +1152,8 @@
 static PyObject *
 PySane_get_devices(PyObject *self, PyObject *args)
 {
-  SANE_Device **devlist;
-  SANE_Device *dev;
+  const SANE_Device **devlist;
+  const SANE_Device *dev;
   SANE_Status st;
   PyObject *list;
   int local_only, i;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-imaging</Name>
        <Homepage>http://www.pythonware.com/products/pil/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        <Summary>Python Imaging Library (PIL)</Summary>
        <Description>The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics capabilities.</Description>
        <Archive sha1sum="76c37504251171fda8da8e63ecb8bc42a69a5c81" type="targz">http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>sane-backends-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>python-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">local_only_initial_value.patch</Patch>
            <Patch level="1">gentoo-imaging-sane.patch</Patch>
            <Patch level="1">anka-imaging-tiffendian.patch</Patch>
            <Patch level="1">gentoo-imaging-giftrans.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>python-imaging</Name>
        <RuntimeDependencies>
            <Dependency>tcltk</Dependency>
            <Dependency>tcl</Dependency>
            <Dependency>lcms</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>sane-backends</Dependency>
            <Dependency>xdg-utils</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>1.1.7</Version>
            <Comment>Rebuild for new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.1.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-08</Date>
            <Version>1.1.7</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-imaging</Name>
        <Summary xml:lang="tr">Python Görüntü İşleme Kitaplığı</Summary>
        <Description xml:lang="es">La librería Python Imaging Library (PIL) facilita el procesamiento de imágenes desde Python. Esta librería soporta muchos formatos de archivos y provee potentes facilidades de procesamiento de gráficos.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "lxml-%s" % get.srcVERSION()

def build():
    # remove the C extension so that it will be rebuild using the latest Cython
    shelltools.unlink("src/lxml/lxml.etree.c")
    shelltools.unlink("src/lxml/lxml.etree_api.h")
    shelltools.unlink("src/lxml/lxml.objectify.c")

    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()),"doc/*")

    pisitools.dodoc("CHANGES.txt", "LICENSES.txt", "TODO.txt")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-lxml</Name>
        <Homepage>http://codespeak.net/lxml</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>BSD</License>
        <IsA>library</IsA>
        lxml is the most feature-rich and easy-to-use library
        <Description>lxml is the most feature-rich and easy-to-use library for working with XML and HTML in the Python language.</Description>
        <Archive sha1sum="8fdc03e1c961d16eacb17a6a96dcf5ea1290e09a" type="targz">https://files.pythonhosted.org/packages/66/45/f11fc376f784c6f2e77ffc7a9d02374ff3ceb07ede8c56f918939409577c/lxml-3.7.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>cython</Dependency>
            <Dependency>libxslt-devel</Dependency>
        </BuildDependencies>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>python-lxml</Name>
        <RuntimeDependencies>
            <Dependency>libxslt</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-lxml-docs</Name>
        API documentation of python-lxml
        <RuntimeDependencies>
            <Dependency release="current">python-lxml</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>3.7.2</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.3.5</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-07-05</Date>
            <Version>3.3.5</Version>
            <Comment>First release</Comment>
            <Name>Vedat Demir</Name>
            <Email>vedat@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-lxml</Name>
        Zengin içerikli ve kolay kullanımlı bir kütüphane.
        <Description xml:lang="tr">Python dilinde xml ve html ile çalışmak için, zengin içerikli ve kolay kullanımlı bir kütüphane.</Description>
    </Source>

    <Package>
        <Name>python-lxml-docs</Name>
        python-lxml paketine ait API belgeleri
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import shelltools

shelltools.export("PYTHONDONTWRITEBYTECODE", "1")

WorkDir = "Mako-%s" % get.srcVERSION()

def install():
    pythonmodules.install()

    #pisitools.dodoc("doc/*.txt")
    pisitools.dohtml("doc/*.html")
    pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/build")
    pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-mako</Name>
        <Homepage>http://www.makotemplates.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>A python templating language</Summary>
        <Description>python-mako is a super-fast templating language that borrows the best ideas from the existing templating languages.</Description>
        <Archive sha1sum="8cbc52319268525208c88dd3ef62c929069e4b24" type="targz">https://pypi.python.org/packages/56/4b/cb75836863a6382199aefb3d3809937e21fa4cb0db15a4f4ba0ecc2e7e8e/Mako-1.0.6.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-mako</Name>
        <RuntimeDependencies>
            <Dependency>python-beaker</Dependency>
            <Dependency>python-MarkupSafe</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-mako-docs</Name>
        <RuntimeDependencies>
            <Dependency release="current">python-mako</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc/*/html</Path>
            <Path fileType="doc">/usr/share/doc/*/build</Path>
            <Path fileType="doc">/usr/share/doc/*/examples</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>1.0.6</Version>
            <Comment>Version Bump</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-09-22</Date>
            <Version>0.9.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Oğuzhan BÖLÜKBAŞ</Name>
            <Email>oguzhan.bolukbas18@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2014-04-16</Date>
            <Version>0.9.1</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-mako</Name>
        Python şablonlama dili
        <Description xml:lang="tr">python-mako, varolan şablonlama dillerindeki en iyi fikirleri bir araya getiren süper hızlı bir şablonlama dilidir.</Description>
    </Source>

    <Package>
        <Name>python-mako-docs</Name>
        python-mako için belgelendirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "mutagen-%s" % get.srcVERSION()

def install():
    pythonmodules.install()

    pisitools.dodoc("NEWS", "COPYING", "README.rst")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-mutagen</Name>
        <Homepage>http://code.google.com/p/mutagen</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>An audio tag editing library</Summary>
        <Description>Mutagen is an audio metadata tag reader and writer implemented in pure Python.</Description>
        <Archive sha1sum="cf0afd755035eb2143737f445a8a370ba30516e8" type="targz">https://bitbucket.org/lazka/mutagen/downloads/mutagen-1.36.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>python3-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-mutagen</Name>
        <RuntimeDependencies>
            <Dependency>python</Dependency>
            <Dependency>python3</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-01-25</Date>
            <Version>1.36.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-06-18</Date>
            <Version>1.32</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>mutagen</Name>
        <Summary xml:lang="tr">Müzik dosyalarının etiketlerini düzenlemek için bir kütüphane</Summary>
        <Description xml:lang="tr">mutagen, müzik dosyalarının etiklerini düzenlemeye yarayan python ile yazılmış bir kütüphanedir.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "nose-%s" % get.srcVERSION()

examples = "%s/%s/" % (get.docDIR(), get.srcNAME())

shelltools.export("PYTHONDONTWRITEBYTECODE", "1")

def setup():
    shelltools.system("sed -i -e 's:man/man1:share/man/man1:g' setup.py")

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.dohtml("doc/*")

    shelltools.chmod("examples/*", 0644)
    pisitools.insinto(examples, "examples/*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM 'http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd'>
<PISI>
    <Source>
        <Name>python-nose</Name>
        <Homepage>http://somethingaboutorange.com/mrl/projects/nose/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        <Summary>A unittest extension offering automatic test suite discovery and easy test authoring</Summary>
        <Description>python-nose provides an alternate test discovery and running process for unittest, one that is intended to mimic the behavior of py.test as much as is reasonably possible without resorting to too much magic.</Description>
        <Archive sha1sum="97f2a04c9d43b29ddf4794a1a1d1ba803f1074c6" type="targz">https://pypi.python.org/packages/source/n/nose/nose-1.3.7.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python-nose</Name>
        <RuntimeDependencies>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>1.3.7</Version>
            <Comment>Rebuild for new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.3.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-04</Date>
            <Version>1.3.7</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python-nose</Name>
        <Summary xml:lang="tr">Python için unittest genişlemesi</Summary>
        <Description xml:lang="tr">python-nose alternatif test tanıtma ve keşif kitaplığı.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "numpy-%s" % get.srcVERSION()

NUMPY_FCONFIG = "config_fc --fcompiler=gnu95"
f2py_docs = "%s/%s/f2py_docs" % (get.docDIR(), get.srcNAME())

shelltools.export("LDFLAGS", "%s -shared" % get.LDFLAGS())
shelltools.export("ATLAS", "None")
shelltools.export("PTATLAS", "None")

def build():
    pythonmodules.compile(NUMPY_FCONFIG)

def install():
    pythonmodules.install(NUMPY_FCONFIG)

    pisitools.doman("doc/f2py/f2py.1")

    pisitools.insinto(f2py_docs, "doc/f2py/*.txt")
    pisitools.dodoc("LICENSE.txt", "THANKS.txt")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python-numpy</Name>
        <Homepage>http://numeric.scipy.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        <Summary>The fundamental package needed for scientific computing with Python</Summary>
        <Description>Numpy contains a powerful N-dimensional array object, sophisticated (broadcasting) functions, tools for integrating C/C++ and Fortran code, and useful linear algebra, Fourier transform, and random number capabilities.</Description>
        <Archive sha1sum="e72916cc72bb6473edff7ab7cc4e7aebdc67517f" type="targz">https://github.com/numpy/numpy/releases/download/v1.12.0/numpy-1.12.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>python-nose</Dependency>
            <Dependency>python-setuptools</Dependency>
            <Dependency>libgfortran</Dependency>
            <Dependency>lapack-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!--<Patch level="1">numpy-1.0.1-f2py.patch</Patch>
            <Patch level="1">001-fix-test_multiarray.patch</Patch>
            <Patch level="1">002-fix_PyUnicodeObject.patch</Patch>
            <Patch level="1">09d2c51fa1d09b17060a8545b925f4dded9dedb1.patch</Patch>
            <Patch level="1">4234b6b13e3ee9da6fc1c24e9e8c442d77587837.patch</Patch>
            <Patch level="1">f2ac38f09ff258339ef44572a3abba02019e1f55.patch</Patch>-->
            </Patches>
    </Source>

    <Package>
        <Name>python-numpy</Name>
        <RuntimeDependencies>
            <Dependency>blas</Dependency>
            <Dependency>lapack</Dependency>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-17</Date>
            <Version>1.12.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.8.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-29</Date>
            <Version>1.8.1</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>numpy</Name>
        <Summary xml:lang="tr">Python ile bilimsel hesaplama için ihtiyaç duyulan temel paket</Summary>
        <Description xml:lang="es">Numpy contiene un potente objeto de array N-dimensional, funciones sofisticadas (broadcasting), herramientas para la integración de código C/C++ y Fortran, y facilidades útiles de algebra lineal, transformación Fourier, y número aleatorios.</Description>
        <Description xml:lang="tr">Numpy, N-boyutlu güçlü bir dizi, gelişmiş fonksiyonlar, C/C++ ve Fortran kodunu entegre etmek için araçlar, doğrusal cebir ve rastgele sayı özelliği içerir.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

#WorkDir="Imaging-%s" % get.srcVERSION()

def install():
    pisitools.dosed("_imagingft.c", "<freetype/freetype.h>", "<freetype2/freetype.h>")
    pisitools.dosed("_imagingft.c", "<freetype/fterrors.h>", "<freetype2/fterrors.h>")
    pythonmodules.install()

    #shelltools.cd("Sane")
    #pythonmodules.install()
    #shelltools.cd("..")

    for header in ["Imaging.h","ImPlatform.h"]:
        pisitools.insinto("/usr/include/%s" % get.curPYTHON(), "libImaging/%s" % header)

    pisitools.dodoc("README.rst")


code:
--- Imaging-1.1.7-orig/PIL/TiffImagePlugin.py	2009-11-01 02:44:12.000000000 +0200
+++ Imaging-1.1.7/PIL/TiffImagePlugin.py	2012-11-13 03:45:11.280000132 +0200
@@ -69,7 +69,7 @@
 def il32(c,o=0):
     return ord(c[o]) + (ord(c[o+1])<<8) + (ord(c[o+2])<<16) + (ord(c[o+3])<<24)
 def ol16(i):
-    return chr(i&255) + chr(i>>8&255)
+    return chr(i>>8&255) + chr(i&255)
 def ol32(i):
     return chr(i&255) + chr(i>>8&255) + chr(i>>16&255) + chr(i>>24&255)

@@ -197,6 +197,8 @@
 }

 PREFIXES = ["MM\000\052", "II\052\000", "II\xBC\000"]
+PREFIX_TO_BYTEORDER = {"MM":"b", "II":"l"}
+BYTEORDER_TO_PREFIX = {"b":"MM", "l":"II"}

 def _accept(prefix):
     return prefix[:4] in PREFIXES
@@ -219,6 +221,8 @@
             self.o16, self.o32 = ol16, ol32
         else:
             raise SyntaxError("not a TIFF IFD")
+        self.byteorder = PREFIX_TO_BYTEORDER[self.prefix]
+
         self.reset()

     def reset(self):
@@ -749,7 +753,7 @@
 def _save(im, fp, filename):

     try:
-        rawmode, prefix, photo, format, bits, extra = SAVE_INFO[im.mode]
+        rawmode, prefix, byteorder, photo, format, bits, extra = SAVE_INFO[im.mode]
     except KeyError:
         raise IOError, "cannot write mode %s as TIFF" % im.mode


code:
--- Imaging-1.1.6.orig/PIL/GifImagePlugin.py    2006-12-03 11:37:15.000000000 +0000
+++ Imaging-1.1.6/PIL/GifImagePlugin.py 2008-10-02 14:51:43.000000000 +0100
@@ -352,6 +352,11 @@
         for i in range(maxcolor):
             s.append(chr(i) * 3)

+    if im.info.has_key('transparency'):
+        transparentIndex = im.info['transparency']
+        s.append('!' + chr(0xf9) + chr(4) + chr(1) + chr(0) + chr(0) +
+                 chr(transparentIndex) + chr(0))
+
     return s

 def getdata(im, offset = (0, 0), **params):


code:
--- Imaging-1.1.6/Sane/_sane.c.orig	2006-12-03 13:12:22.000000000 +0100
+++ Imaging-1.1.6/Sane/_sane.c	2009-02-28 11:41:19.000000000 +0200
@@ -1152,8 +1152,8 @@
 static PyObject *
 PySane_get_devices(PyObject *self, PyObject *args)
 {
-  SANE_Device **devlist;
-  SANE_Device *dev;
+  const SANE_Device **devlist;
+  const SANE_Device *dev;
   SANE_Status st;
   PyObject *list;
   int local_only, i;