@@ -140,14 +140,20 @@ in modules // {
140140 pycairo = callPackage ../development/python-modules/pycairo {
141141 };
142142
143+ pycangjie = if isPy3k then callPackage ../development/python-modules/pycangjie { } else throw "pycangjie not supported for interpreter ${python.executable}";
144+
143145 pycrypto = callPackage ../development/python-modules/pycrypto { };
144146
147+ pygame = callPackage ../development/python-modules/pygame { };
148+
145149 pygobject = callPackage ../development/python-modules/pygobject { };
146150
147151 pygobject3 = callPackage ../development/python-modules/pygobject/3.nix { };
148152
149153 pygtk = callPackage ../development/python-modules/pygtk { libglade = null; };
150154
155+ pygtksourceview = callPackage ../development/python-modules/pygtksourceview { };
156+
151157 pyGtkGlade = self.pygtk.override {
152158 libglade = pkgs.gnome.libglade;
153159 };
@@ -163,6 +169,16 @@ in modules // {
163169 qt5 = pkgs.qt5;
164170 };
165171
172+ pyside = callPackage ../development/python-modules/pyside { };
173+
174+ pysideApiextractor = callPackage ../development/python-modules/pyside/apiextractor.nix { };
175+
176+ pysideGeneratorrunner = callPackage ../development/python-modules/pyside/generatorrunner.nix { };
177+
178+ pysideShiboken = callPackage ../development/python-modules/pyside/shiboken.nix { };
179+
180+ pysideTools = callPackage ../development/python-modules/pyside/tools.nix { };
181+
166182 sip = callPackage ../development/python-modules/sip { };
167183
168184 sip_4_16 = callPackage ../development/python-modules/sip/4.16.nix { };
@@ -485,7 +501,6 @@ in modules // {
485501 };
486502 };
487503
488−
489504 anyjson = buildPythonPackage rec {
490505 name = "anyjson-0.3.3";
491506 disabled = isPy3k;
@@ -541,6 +556,70 @@ in modules // {
541556 };
542557 };
543558
559+ ansible = buildPythonPackage rec {
560+ version = "1.9.4";
561+ name = "ansible-${version}";
562+
563+ src = pkgs.fetchurl {
564+ url = "https://releases.ansible.com/ansible/${name}.tar.gz";
565+ sha256 = "1qvgzb66nlyc2ncmgmqhzdk0x0p2px09967p1yypf5czwjn2yb4p";
566+ };
567+
568+ prePatch = ''
569+ sed -i "s,/usr/,$out," lib/ansible/constants.py
570+ '';
571+
572+ doCheck = false;
573+ dontStrip = true;
574+ dontPatchELF = true;
575+ dontPatchShebangs = true;
576+ windowsSupport = true;
577+
578+ propagatedBuildInputs = with self; [
579+ paramiko jinja2 pyyaml httplib2 boto six
580+ ] ++ optional windowsSupport pywinrm;
581+
582+ meta = {
583+ homepage = "http://www.ansible.com";
584+ description = "A simple automation tool";
585+ license = with licenses; [ gpl3] ;
586+ maintainers = with maintainers; [ joamaki ];
587+ platforms = with platforms; [ linux darwin ];
588+ };
589+ };
590+
591+ ansible2 = buildPythonPackage rec {
592+ version = "v2.0.0_0.6.rc1";
593+ name = "ansible-${version}";
594+
595+ src = pkgs.fetchurl {
596+ url = "http://releases.ansible.com/ansible/ansible-2.0.0-0.6.rc1.tar.gz";
597+ sha256 = "0v7fqi7qg9lzvpsjlaw9rzas8n1cdsyp3y9jrqzjxs9nbknwcibd";
598+ };
599+
600+ prePatch = ''
601+ sed -i "s,/usr/,$out," lib/ansible/constants.py
602+ '';
603+
604+ doCheck = false;
605+ dontStrip = true;
606+ dontPatchELF = true;
607+ dontPatchShebangs = true;
608+ windowsSupport = true;
609+
610+ propagatedBuildInputs = with self; [
611+ paramiko jinja2 pyyaml httplib2 boto six
612+ ] ++ optional windowsSupport pywinrm;
613+
614+ meta = with stdenv.lib; {
615+ homepage = "http://www.ansible.com";
616+ description = "A simple automation tool";
617+ license = with licenses; [ gpl3 ];
618+ maintainers = with maintainers; [ copumpkin ];
619+ platforms = with platforms; [ linux darwin ];
620+ };
621+ };
622+
544623 apipkg = buildPythonPackage rec {
545624 name = "apipkg-1.4";
546625
@@ -936,6 +1015,42 @@ in modules // {
9361015 };
9371016 }));
9381017
1018+ awscli = buildPythonPackage rec {
1019+ name = "awscli-${version}";
1020+ version = "1.9.12";
1021+
1022+ src = pkgs.fetchurl {
1023+ url = "https://pypi.python.org/packages/source/a/awscli/${name}.tar.gz";
1024+ sha256 = "0b50de084c8de70adf45c0e938b6350344d9b6acde8b7cdee02cb32964bc58fd";
1025+ };
1026+
1027+ propagatedBuildInputs = with self; [
1028+ botocore
1029+ bcdoc
1030+ six
1031+ colorama
1032+ docutils
1033+ rsa
1034+ pyasn1
1035+ pkgs.groff
1036+ ];
1037+
1038+ postInstall = ''
1039+ mkdir -p $out/etc/bash_completion.d
1040+ echo "complete -C $out/bin/aws_completer aws" > $out/etc/bash_completion.d/awscli
1041+ mkdir -p $out/share/zsh/site-functions
1042+ mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions
1043+ rm $out/bin/aws.cmd
1044+ '';
1045+
1046+ meta = {
1047+ homepage = https://aws.amazon.com/cli/;
1048+ description = "Unified tool to manage your AWS services";
1049+ license = stdenv.lib.licenses.asl20;
1050+ maintainers = with maintainers; [ muflax ];
1051+ };
1052+ };
1053+
9391054 azure = buildPythonPackage rec {
9401055 version = "0.11.0";
9411056 name = "azure-${version}";
@@ -1673,6 +1788,32 @@ in modules // {
16731788 };
16741789 };
16751790
1791+ bsddb3 = buildPythonPackage rec {
1792+ name = "bsddb3-${version}";
1793+ version = "6.1.1";
1794+
1795+ src = pkgs.fetchurl {
1796+ url = "https://pypi.python.org/packages/source/b/bsddb3/${name}.tar.gz";
1797+ sha256 = "6f21b0252125c07798d784c164ef135ad153d226c01b290258ee1c5b9e7c4dd3";
1798+ };
1799+
1800+ buildInputs = [ pkgs.db ];
1801+
1802+ # Path to database need to be set.
1803+ # Somehow the setup.py flag is not propagated.
1804+ #setupPyBuildFlags = [ "--berkeley-db=${pkgs.db}" ];
1805+ # We can also use a variable
1806+ preConfigure = ''
1807+ export BERKELEYDB_DIR=${pkgs.db};
1808+ '';
1809+
1810+ meta = {
1811+ description = "Python bindings for Oracle Berkeley DB";
1812+ homepage = http://www.jcea.es/programacion/pybsddb.htm;
1813+ license = with licenses; [ agpl3 ]; # License changed from bsd3 to agpl3 since 6.x
1814+ };
1815+ };
1816+
16761817 bokeh = buildPythonPackage rec {
16771818 name = "bokeh-${version}";
16781819 version = "0.10.0";
@@ -1776,12 +1917,12 @@ in modules // {
17761917 };
17771918
17781919 botocore = buildPythonPackage rec {
1779− version = "1.3.6";
1920+ version = "1.3.12";
17801921 name = "botocore-${version}";
17811922
17821923 src = pkgs.fetchurl {
17831924 url = "https://pypi.python.org/packages/source/b/botocore/${name}.tar.gz";
1784− sha256 = "05a0ihv66fx77j16mjlm76d8zm7sd5wfzh1hx4nm3ilb9gz5h016";
1925+ sha256 = "6f4f09234aca23db2e66c548b98a4fb14516241b31fb473c9c6f5b21270900c6";
17851926 };
17861927
17871928 propagatedBuildInputs =
@@ -7628,6 +7769,8 @@ in modules // {
76287769 };
76297770 });
76307771
7772+ foursuite = callPackage ../development/python-modules/4suite {};
7773+
76317774 fs = buildPythonPackage rec {
76327775 name = "fs-0.5.0";
76337776
@@ -8742,6 +8885,33 @@ in modules // {
87428885 propagatedBuildInputs = with self; [ self.nose self.ipython ];
87438886 };
87448887
8888+ pythonIRClib = buildPythonPackage rec {
8889+ name = "irclib-${version}";
8890+ version = "0.4.8";
8891+
8892+ src = pkgs.fetchurl {
8893+ url = "mirror://sourceforge/python-irclib/python-irclib-${version}.tar.gz";
8894+ sha256 = "1x5456y4rbxmnw4yblhb4as5791glcw394bm36px3x6l05j3mvl1";
8895+ };
8896+
8897+ patches = [(pkgs.fetchurl {
8898+ url = "http://trac.uwc.ac.za/trac/python_tools/browser/xmpp/resources/irc-transport/irclib.py.diff?rev=387&format=raw";
8899+ name = "irclib.py.diff";
8900+ sha256 = "5fb8d95d6c95c93eaa400b38447c63e7a176b9502bc49b2f9b788c9905f4ec5e";
8901+ })];
8902+
8903+ patchFlags = "irclib.py";
8904+
8905+ propagatedBuildInputs = with self; [ paver ];
8906+
8907+ disabled = isPy3k;
8908+ meta = {
8909+ description = "Python IRC library";
8910+ homepage = https://bitbucket.org/jaraco/irc;
8911+ license = with licenses; [ lgpl21 ];
8912+ };
8913+ };
8914+
87458915 iso8601 = buildPythonPackage {
87468916 name = "iso8601-0.1.10";
87478917 src = pkgs.fetchurl {
@@ -10157,6 +10327,36 @@ in modules // {
1015710327 };
1015810328 });
1015910329
10330+ mygpoclient = buildPythonPackage rec {
10331+ name = "mygpoclient-${version}";
10332+ version = "1.7";
10333+
10334+ src = pkgs.fetchurl {
10335+ url = "https://thp.io/2010/mygpoclient/${name}.tar.gz";
10336+ sha256 = "6a0b7b1fe2b046875456e14eda3e42430e493bf2251a64481cf4fd1a1e21a80e";
10337+ };
10338+
10339+ buildInputs = with self; [ nose minimock ];
10340+
10341+ checkPhase = ''
10342+ nosetests
10343+ '';
10344+
10345+ disabled = isPy3k;
10346+
10347+ meta = {
10348+ description = "A gpodder.net client library";
10349+ longDescription = ''
10350+ The mygpoclient library allows developers to utilize a Pythonic interface
10351+ to the gpodder.net web services.
10352+ '';
10353+ homepage = https://thp.io/2010/mygpoclient/;
10354+ license = with licenses; [ gpl3 ];
10355+ platforms = with platforms; [ linux darwin ];
10356+ maintainers = with maintainers; [ skeidel ];
10357+ };
10358+ };
10359+
1016010360 plover = buildPythonPackage rec {
1016110361 name = "plover-${version}";
1016210362 version = "2.5.8";
@@ -14122,6 +14322,24 @@ in modules // {
1412214322 };
1412314323 });
1412414324
14325+ pycups = buildPythonPackage rec {
14326+ name = "pycups-${version}";
14327+ version = "1.9.73";
14328+
14329+ src = pkgs.fetchurl {
14330+ url = "http://cyberelk.net/tim/data/pycups/pycups-${version}.tar.bz2";
14331+ sha256 = "c381be011889ca6f728598578c89c8ac9f7ab1e95b614474df9f2fa831ae5335";
14332+ };
14333+
14334+ buildInputs = [ pkgs.cups ];
14335+
14336+ meta = {
14337+ description = "Python bindings for libcups";
14338+ homepage = http://cyberelk.net/tim/software/pycups/;
14339+ license = with licenses; [ gpl2Plus ];
14340+ };
14341+
14342+ };
1412514343
1412614344 pycurl = buildPythonPackage (rec {
1412714345 name = "pycurl-7.19.5";
@@ -14400,6 +14618,24 @@ in modules // {
1440014618 };
1440114619 };
1440214620
14621+ pyx = buildPythonPackage rec {
14622+ name = "pyx-${version}";
14623+ version = "0.14.1";
14624+
14625+ src = pkgs.fetchurl {
14626+ url = "https://pypi.python.org/packages/source/P/PyX/PyX-${version}.tar.gz";
14627+ sha256 = "05d1b7fc813379d2c12fcb5bd0195cab522b5aabafac88f72913f1d47becd912";
14628+ };
14629+
14630+ disabled = !isPy3k;
14631+
14632+ meta = {
14633+ description = "Python package for the generation of PostScript, PDF, and SVG files";
14634+ homepage = http://pyx.sourceforge.net/;
14635+ license = with licenses; [ gpl2 ];
14636+ };
14637+ };
14638+
1440314639 mmpython = buildPythonPackage rec {
1440414640 version = "0.4.10";
1440514641 name = "mmpython-${version}";
@@ -15550,6 +15786,26 @@ in modules // {
1555015786 };
1555115787 };
1555215788
15789+ rbtools = buildPythonPackage rec {
15790+ name = "rbtools-0.7.2";
15791+
15792+ src = pkgs.fetchurl {
15793+ url = "http://downloads.reviewboard.org/releases/RBTools/0.7/RBTools-0.7.2.tar.gz";
15794+ sha256 = "1ng8l8cx81cz23ls7fq9wz4ijs0zbbaqh4kj0mj6plzcqcf8na4i";
15795+ };
15796+
15797+ buildInputs = with self; [ nose ];
15798+ propagatedBuildInputs = with self; [ modules.sqlite3 six ];
15799+
15800+ checkPhase = "nosetests";
15801+
15802+ disabled = isPy3k;
15803+
15804+ meta = {
15805+ maintainers = with maintainers; [ iElectric ];
15806+ };
15807+ };
15808+
1555315809 rencode = buildPythonPackage rec {
1555415810 name = "rencode-${version}";
1555515811 version = "git20150810";
@@ -16829,6 +17085,24 @@ in modules // {
1682917085 };
1683017086 };
1683117087
17088+ slowaes = buildPythonPackage rec {
17089+ name = "slowaes-${version}";
17090+ version = "0.1a1";
17091+
17092+ src = pkgs.fetchurl {
17093+ url = "https://pypi.python.org/packages/source/s/slowaes/${name}.tar.gz";
17094+ sha256 = "83658ae54cc116b96f7fdb12fdd0efac3a4e8c7c7064e3fac3f4a881aa54bf09";
17095+ };
17096+
17097+ disabled = isPy3k;
17098+
17099+ meta = {
17100+ homepage = "http://code.google.com/p/slowaes/";
17101+ description = "AES implemented in pure python";
17102+ license = with licenses; [ asl20 ];
17103+ };
17104+ };
17105+
1683217106 snowballstemmer = buildPythonPackage rec {
1683317107 name = "snowballstemmer-1.2.0";
1683417108
@@ -22276,6 +22550,27 @@ in modules // {
2227622550 };
2227722551 };
2227822552
22553+ xmpppy = buildPythonPackage rec {
22554+ name = "xmpp.py-${version}";
22555+ version = "0.5.0rc1";
22556+
22557+ src = pkgs.fetchurl {
22558+ url = "mirror://sourceforge/xmpppy/xmpppy-${version}.tar.gz";
22559+ sha256 = "16hbh8kwc5n4qw2rz1mrs8q17rh1zq9cdl05b1nc404n7idh56si";
22560+ };
22561+
22562+ preInstall = ''
22563+ mkdir -p $out/bin $out/lib $out/share $(toPythonPath $out)
22564+ export PYTHONPATH=$PYTHONPATH:$(toPythonPath $out)
22565+ '';
22566+
22567+ disabled = isPy3k;
22568+
22569+ meta = {
22570+ description = "XMPP python library";
22571+ };
22572+ };
22573+
2227922574 xstatic-bootbox = buildPythonPackage rec {
2228022575 name = "XStatic-Bootbox-${version}";
2228122576 version = "4.3.0.1";