From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2JPp-0007ub-9k for guix-patches@gnu.org; Sun, 23 Apr 2017 11:27:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2JPi-0001Ri-Ok for guix-patches@gnu.org; Sun, 23 Apr 2017 11:27:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38413) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2JPh-0001RW-VB for guix-patches@gnu.org; Sun, 23 Apr 2017 11:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d2JPh-0004F4-MM for guix-patches@gnu.org; Sun, 23 Apr 2017 11:27:01 -0400 Subject: bug#26613: Add pootle Resent-Message-ID: Date: Sun, 23 Apr 2017 17:25:59 +0200 From: Julien Lepiller Message-ID: <20170423172555.5ae4d0a0@lepiller.eu> In-Reply-To: <20170423003321.GA10153@jasmine> References: <20170422231314.075c7ba2@lepiller.eu> <20170423003321.GA10153@jasmine> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/+TA6WapVYnZnP_I5kz550R1" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26613@debbugs.gnu.org --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le Sat, 22 Apr 2017 20:33:21 -0400, Leo Famulari a =C3=A9crit : > On Sat, Apr 22, 2017 at 11:13:14PM +0200, Julien Lepiller wrote: >=20 > Thanks for all these patches! >=20 > > here are patches that add pootle, a translation server written in > > django. Some patches modify packages that have several dependents, > > so it should probably go to core-updates first. =20 >=20 > We don't want to update foo and break foo's dependents on the master > branch, but unless foo has > 1200 dependents, we can avoid waiting for > core-updates. See: >=20 > https://lists.gnu.org/archive/html/guix-devel/2016-10/msg00933.html >=20 > For this patch series, the bigger changes are updates to pytest-runner > and dateutil, right? That's less than 200 dependent packages. At that > scale, all the packages could be built as a test on a developer's > machine, or you could just check a few dependent packages and push it > to master with fingers crossed ;) >=20 > Patch-specific comments below. Whatever I don't comment on LGTM. >=20 > > Subject: [PATCH 01/34] gnu: python-pytest-runner: Update to 2.11.1. > >=20 > > * gnu/packages/python.scm (python-pytest-runner) > > (python2-pytest-runner): Update to 2.11.1. =20 >=20 > I'd check a handful of dependent packages and cross my fingers :) I've rebuilt everything, and nothing new fails. >=20 > [lots of suggestions] OK, I applied all your suggestions, thanks :). I attached the updated patches. I could find how to run some of the testsuite, and commented when they failed before even running the tests or when there was no testsuite to begin with. I had to add a few more packages for the testsuites to run in some packages. >=20 > > Subject: [PATCH 34/34] gnu: Add pootle. > >=20 > > * gnu/packages/django.scm (pootle): New variable. =20 >=20 > > + (version "2.8.0rc5") =20 >=20 > Usually we don't package beta versions or release candidates, but > sometimes it's the right thing to do. What's the story here? I use pootle on another system and found that the latest version has some bugs that make it difficult to use (though not breaking it completely). I'm a happy user of the release candidate. I could package version 2.7.6 too, but I wouldn't use it ;). >=20 > [other suggestions] > All done too, thanks :) --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-gnu-python-pytest-runner-Update-to-2.11.1.patch =46rom f57ed854a7a0a802934f76ff2ff622c907277e98 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 12:14:06 +0200 Subject: [PATCH 01/37] gnu: python-pytest-runner: Update to 2.11.1. * gnu/packages/python.scm (python-pytest-runner) (python2-pytest-runner): Update to 2.11.1. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e51405bd9..142de0984 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1879,14 +1879,14 @@ supports coverage of subprocesses.") (define-public python-pytest-runner (package (name "python-pytest-runner") - (version "2.6.2") + (version "2.11.1") (source (origin (method url-fetch) (uri (pypi-uri "pytest-runner" version)) (sha256 (base32 - "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7")))) + "1cw978kqqcq916b9gfns1qjqvg33c5ail5jhw9054dsynkm32flq")))) (build-system python-build-system) (arguments `(#:phases --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0002-gnu-Add-python-pytest-warnings.patch =46rom d713ba00b66fd7496389210cc8ff04294ea2d458 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 21:20:09 +0200 Subject: [PATCH 02/37] gnu: Add python-pytest-warnings. * gnu/packages/python.scm (python-pytest-warnings, python2-pytest-warnings): New variables. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 142de0984..1e64a0a9e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13999,3 +13999,27 @@ exception message with a traceback that points to = the culprit.") =20 (define-public python2-fudge (package-with-python2 python-fudge)) + +(define-public python-pytest-warnings + (package + (name "python-pytest-warnings") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-warnings" version)) + (sha256 + (base32 + "0gf2dpahpl5igb7jh1sr9acj3z3gp7zahqdqb69nk6wx01c8kc1g")))) + (build-system python-build-system) + (propagated-inputs + `(("pytest" ,python-pytest-3.0))) + (home-page "https://github.com/fschulze/pytest-warnings") + (synopsis "Pytest plugin to list Python warnings in pytest report") + (description + "Python-pytest-warnings is a pytest plugin to list Python warnings in +pytest report.") + (license license:expat))) + +(define-public python2-pytest-warnings + (package-with-python2 python-pytest-warnings)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0003-gnu-Add-python-pytest-catchlog.patch =46rom 2d4e3ba25491bd2579baa3e6d69e2bb7c0fdbb0e Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 22:14:02 +0200 Subject: [PATCH 03/37] gnu: Add python-pytest-catchlog. * gnu/packages/python.scm (python-pytest-catchlog, python2-pytest-catchlog): New variables. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 1e64a0a9e..379697167 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14023,3 +14023,29 @@ pytest report.") =20 (define-public python2-pytest-warnings (package-with-python2 python-pytest-warnings)) + +(define-public python-pytest-catchlog + (package + (name "python-pytest-catchlog") + (version "1.2.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-catchlog" version ".zip")) + (sha256 + (base32 + "1w7wxh27sbqwm4jgwrjr9c2gy384aca5jzw9c0wzhl0pmk2mvqab")))) + (build-system python-build-system) + (native-inputs + `(("unzip" ,unzip))) + (propagated-inputs + `(("pytest" ,python-pytest-3.0))) + (home-page "https://github.com/eisensheng/pytest-catchlog") + (synopsis "Pytest plugin to catch log messages") + (description + "Python-pytest-catchlog is a pytest plugin to catch log messages. Th= is is +a fork of pytest-capturelog.") + (license license:expat))) + +(define-public python2-pytest-catchlog + (package-with-python2 python-pytest-catchlog)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0004-gnu-Add-python-utils.patch =46rom ceddec8f6fa2537d9e1aad16a3dabe34b326f9c7 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 12:31:55 +0200 Subject: [PATCH 04/37] gnu: Add python-utils. * gnu/packages/python.scm (python-utils, python2-utils): New variables. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 379697167..7409f6a07 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14049,3 +14049,28 @@ a fork of pytest-capturelog.") =20 (define-public python2-pytest-catchlog (package-with-python2 python-pytest-catchlog)) + +(define-public python-utils + (package + (name "python-utils") + (version "2.1.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "python-utils" version)) + (sha256 + (base32 + "1mcsy6q5am4ya72rgkpb6kax6vv7c93cfkkas89xnpa4sj9zf28p")))) + (build-system python-build-system) + (native-inputs + `(("pytest-runner" ,python-pytest-runner) + ("pytest" ,python-pytest) + ("six" ,python-six))) + (home-page "https://github.com/WoLpH/python-utils") + (synopsis "Convenient utilities not included with the standard Python = install") + (description + "Python Utils is a collection of small Python functions and classes = which +make common patterns shorter and easier.") + (license license:bsd-2))) + +(define-public python2-utils + (package-with-python2 python-utils)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0005-gnu-Add-python-webassets.patch =46rom 3dcae3046c5d0d60f333141fa8d3da6aef80e017 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 13:19:25 +0200 Subject: [PATCH 05/37] gnu: Add python-webassets. * gnu/packages/python.scm (python-webassets, python2-webassets): New variab= les. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 7409f6a07..6bf2291a9 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14074,3 +14074,27 @@ make common patterns shorter and easier.") =20 (define-public python2-utils (package-with-python2 python-utils)) + +(define-public python-webassets + (package + (name "python-webassets") + (version "0.12.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "webassets" version)) + (sha256 + (base32 + "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7")))) + (build-system python-build-system) + (native-inputs + `(("python-jinja2" ,python-jinja2) + ("python-mock" ,python-mock) + ("python-nose" ,python-nose) + ("python-pytest" ,python-pytest))) + (home-page "https://github.com/miracle2k/webassets") + (synopsis "Media asset management") + (description "Merges, minifies and compresses Javascript and CSS files, +supporting a variety of different filters, including YUI, jsmin, jspacker = or +CSS tidy. Also supports URL rewriting in CSS files.") + (license license:bsd-2))) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0006-gnu-Add-python-sphinx-me.patch =46rom cc2c0e3ff5788173d17dc41442be48d8f325889b Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 13:22:46 +0200 Subject: [PATCH 06/37] gnu: Add python-sphinx-me. * gnu/packages/python.scm (python-sphinx-me, python2-sphinx-me): New variab= les. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6bf2291a9..adb379ea5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14098,3 +14098,27 @@ make common patterns shorter and easier.") supporting a variety of different filters, including YUI, jsmin, jspacker = or CSS tidy. Also supports URL rewriting in CSS files.") (license license:bsd-2))) + +(define-public python-sphinx-me + (package + (name "python-sphinx-me") + (version "0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sphinx-me" version)) + (sha256 + (base32 + "06jzgp213zihnvpcy2y5jy3ykid3apc2ncp2pg6a2g05lhiziglq")))) + (build-system python-build-system) + (home-page "https://github.com/stephenmcd/sphinx-me") + (synopsis "Create a Sphinx documentation shell") + (description + "Create a Sphinx documentation shell for your project and include the +README file as the documentation index. It handles extracting the required +meta data such as the project name, author and version from your project f= or +use in your Sphinx docs.") + (license license:bsd-2))) + +(define-public python2-sphinx-me + (package-with-python2 python-sphinx-me)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0007-gnu-python-rq-Update-to-0.7.1.patch =46rom 42a5c506e91568c03608f5aadd4a90f78080ce5f Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 13:25:01 +0200 Subject: [PATCH 07/37] gnu: python-rq: Update to 0.7.1. * gnu/packages/python.scm (python-rq, python2-rq): Update to 0.7.1. [source]: Use pypi-uri. --- gnu/packages/python.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index adb379ea5..e9fc2b979 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3375,15 +3375,13 @@ mining and data analysis.") (define-public python-rq (package (name "python-rq") - (version "0.5.2") + (version "0.7.1") (source (origin (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/source/r/rq/rq-" - version ".tar.gz")) + (uri (pypi-uri "rq" version)) (sha256 - (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix")))) + (base32 "0gaq5pnh0zy46r8jvygi0ifbvz3pq6i7xla78ijcgjw0x77qzsdh")))) (build-system python-build-system) (propagated-inputs `(("python-click" ,python-click) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0008-gnu-Add-python-cssmin.patch =46rom 0524e9632ed09a9eb8d97fe06be9c27653ae7e95 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 13:27:33 +0200 Subject: [PATCH 08/37] gnu: Add python-cssmin. * gnu/packages/python.scm (python-cssmin, python2-cssmin): New variables. --- gnu/packages/python.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e9fc2b979..89cacc4a5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14120,3 +14120,23 @@ use in your Sphinx docs.") =20 (define-public python2-sphinx-me (package-with-python2 python-sphinx-me)) + +(define-public python-cssmin + (package + (name "python-cssmin") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cssmin" version)) + (sha256 + (base32 + "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0")))) + (build-system python-build-system) + (home-page "https://github.com/zacharyvoase/cssmin") + (synopsis "Python port of the YUI CSS Compressor") + (description "Python port of the YUI CSS Compressor.") + (license (list license:expat license:bsd-3)))) + +(define-public python2-cssmin + (package-with-python2 python-cssmin)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0009-gnu-Add-python-diff-match-patch.patch =46rom 0f046ce0698f8ee020ad1b133373a477a67556a0 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 13:34:24 +0200 Subject: [PATCH 09/37] gnu: Add python-diff-match-patch. * gnu/packages/python.scm (python-diff-match-patch, python2-diff-match-patc= h): New variables. --- gnu/packages/python.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 89cacc4a5..4b5209ac5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14140,3 +14140,24 @@ use in your Sphinx docs.") =20 (define-public python2-cssmin (package-with-python2 python-cssmin)) + +(define-public python-diff-match-patch + (package + (name "python-diff-match-patch") + (version "20121119") + (source + (origin + (method url-fetch) + (uri (pypi-uri "diff-match-patch" version)) + (sha256 + (base32 + "0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx")))) + (build-system python-build-system) + (home-page "https://code.google.com/p/google-diff-match-patch") + (synopsis "Synchronize plain text") + (description "Diff Match and Patch libraries offer robust algorithms to +perform the operations required for synchronizing plain text.") + (license license:asl2.0))) + +(define-public python2-diff-match-patch + (package-with-python2 python-diff-match-patch)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0010-gnu-Add-python-dirsync.patch =46rom 2569c05b4ca9dae4eeac58c2d901cea890830436 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 13:39:13 +0200 Subject: [PATCH 10/37] gnu: Add python-dirsync. * gnu/packages/python.scm (python-dirsync, python2-dirsync): New variables. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4b5209ac5..0247966cf 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14161,3 +14161,27 @@ perform the operations required for synchronizing = plain text.") =20 (define-public python2-diff-match-patch (package-with-python2 python-diff-match-patch)) + +(define-public python-dirsync + (package + (name "python-dirsync") + (version "2.2.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "dirsync" version ".zip")) + (sha256 + (base32 + "1hcdvmkwd5512zbxpin0k7bx5bkgzy3swjx7d0kj1y45af6r75v2")))) + (build-system python-build-system) + (native-inputs + `(("unzip" ,unzip))) + (propagated-inputs + `(("six" ,python-six))) + (home-page "https://bitbucket.org/tkhyn/dirsync") + (synopsis "Advanced directory tree synchronisation tool") + (description "Advanced directory tree synchronisation tool.") + (license license:expat))) + +(define-public python2-dirsync + (package-with-python2 python-dirsync)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0011-gnu-Add-python-nosexcover.patch =46rom 9b055c72fdbc86f745019a3710388ffc5e183576 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 14:00:09 +0200 Subject: [PATCH 11/37] gnu: Add python-nosexcover. * gnu/packages/python.scm (python-nosexcover, python2-nosexcover): New vari= ables. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0247966cf..8f30bbe37 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14185,3 +14185,30 @@ perform the operations required for synchronizing = plain text.") =20 (define-public python2-dirsync (package-with-python2 python-dirsync)) + +(define-public python-nosexcover + (package + (name "python-nosexcover") + (version "1.0.11") + (source (origin + (method url-fetch) + (uri (pypi-uri "nosexcover" version)) + (sha256 + (base32 + "10xqr12qv62k2flxwqhh8cr00cjhn7sfjrm6p35gd1x5bmjkr319")))) + (build-system python-build-system) + (propagated-inputs + `(("python-coverage" ,python-coverage) + ("python-nose" ,python-nose))) + (home-page "http://github.com/cmheisel/nose-xcover") + (synopsis "Extends nose.plugins.cover to add Cobertura-style XML repor= ts") + (description "Nose-xcover is a companion to the built-in +@code{nose.plugins.cover}. This plugin will write out an XML coverage rep= ort +to a file named coverage.xml. + +It will honor all the options you pass to the Nose coverage plugin, +especially -cover-package.") + (license license:expat))) + +(define-public python2-nosexcover + (package-with-python2 python-nosexcover)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0012-gnu-Add-python-elasticsearch.patch =46rom 7e65aaf8a4d3d06d457d373a58f4aa25562bf229 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 14:33:57 +0200 Subject: [PATCH 12/37] gnu: Add python-elasticsearch. * gnu/packages/python.scm (python-elasticsearch, python2-elasticsearch): New variables. --- gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8f30bbe37..b7098bf38 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14212,3 +14212,35 @@ especially -cover-package.") =20 (define-public python2-nosexcover (package-with-python2 python-nosexcover)) + +(define-public python-elasticsearch + (package + (name "python-elasticsearch") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "elasticsearch" version)) + (sha256 + (base32 + "1sdw1r05cw7ihnmng8ra9v968fj7bq6sji8i1dikymsnkcpgc69g")))) + (build-system python-build-system) + (native-inputs + `(("python-mock" ,python-mock) + ("python-nosexcover" ,python-nosexcover) + ("python-pyaml" ,python-pyaml) + ("python-requests" ,python-requests))) + (propagated-inputs + `(("urllib3" ,python-urllib3))) + (arguments + ;; tests require the test_elasticsearch module but it is not distribu= ted. + `(#:tests? #f)) + (home-page "https://github.com/elastic/elasticsearch-py") + (synopsis "Low-level client for Elasticsearch") + (description "Official low-level client for Elasticsearch. Its goal i= s to +provide common ground for all Elasticsearch-related code in Python; becaus= e of +this it tries to be opinion-free and very extendable.") + (license license:expat))) + +(define-public python2-elasticsearch + (package-with-python2 python-elasticsearch)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0013-gnu-python-dateutil-Update-to-2.6.0.patch =46rom b0e5e23d6b4b4955a1b848fbe5a4080f328304ea Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 14:35:27 +0200 Subject: [PATCH 13/37] gnu: python-dateutil: Update to 2.6.0. * gnu/packages/python.scm (python-dateutil, python2-dateutil): Update to 2.= 6.0. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b7098bf38..19619b563 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1108,14 +1108,14 @@ Python file, so it can be easily copied into your p= roject.") (define-public python-dateutil (package (name "python-dateutil") - (version "2.5.3") + (version "2.6.0") (source (origin (method url-fetch) (uri (pypi-uri "python-dateutil" version)) (sha256 (base32 - "1v9j9fmf8g911yg6k01xa2db6dx3wv73zkk7fncsj7vagjqgs20l")))) + "1lhq0hxjc3cfha101q02ld5ijlpfyjn2w1yh7wvpiy367pgzi8k2")))) (build-system python-build-system) (propagated-inputs `(("python-six" ,python-six))) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0014-gnu-Add-python-levenshtein.patch =46rom 88eb3daaa68edcbfb32401929a9369e61c6e0b64 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 14:44:38 +0200 Subject: [PATCH 14/37] gnu: Add python-levenshtein. * gnu/packages/python.scm (python-levenshtein, python2-levenshtein): New variables. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 19619b563..cb7fe395d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14244,3 +14244,31 @@ this it tries to be opinion-free and very extendab= le.") =20 (define-public python2-elasticsearch (package-with-python2 python-elasticsearch)) + +(define-public python-levenshtein + (package + (name "python-levenshtein") + (version "0.12.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-Levenshtein" version)) + (sha256 + (base32 + "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3")))) + (build-system python-build-system) + (home-page "https://github.com/ztane/python-Levenshtein") + (synopsis "Fast computation of Levenshtein distance and string similar= ity") + (description + "The Levenshtein Python C extension module contains functions for fas= t computation of +@enumerate +@item Levenshtein (edit) distance, and edit operations +@item string similarity +@item approximate median strings, and generally string averaging +@item string sequence and set similarity +@end enumerate +It supports both normal and Unicode strings.") + (license license:gpl2+))) + +(define-public python2-levenshtein + (package-with-python2 python-levenshtein)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0015-gnu-Add-python-scandir.patch =46rom 3df3adbede58211233be2e86c5a9e3f4dfd5dc8b Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 14:47:22 +0200 Subject: [PATCH 15/37] gnu: Add python-scandir. * gnu/packages/python.scm (python-scandir, python2-scandir): New variables. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index cb7fe395d..ba350b874 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14272,3 +14272,27 @@ It supports both normal and Unicode strings.") =20 (define-public python2-levenshtein (package-with-python2 python-levenshtein)) + +(define-public python-scandir + (package + (name "python-scandir") + (version "1.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "scandir" version)) + (sha256 + (base32 "0yjrgp0mxp3d8bjkq2m1ac2ys8n76wykksvgyjrnil9gr3fx7a5d")))) + (build-system python-build-system) + (home-page "https://github.com/benhoyt/scandir") + (synopsis "Directory iteration function") + (description + "Directory iteration function like os.listdir(), except that instead = of +returning a list of bare filenames, it yields DirEntry objects that include +file type and stat information along with the name. Using scandir() incre= ases +the speed of os.walk() by 2-20 times (depending on the platform and file +system) by avoiding unnecessary calls to os.stat() in most cases.") + (license license:bsd-3))) + +(define-public python2-scandir + (package-with-python2 python-scandir)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0016-gnu-Add-python2-stemming.patch =46rom 8b22294896282bf9bb5f555555aca5ecb51211d5 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 14:52:16 +0200 Subject: [PATCH 16/37] gnu: Add python2-stemming. * gnu/packages/python.scm (python2-stemming): New variable. --- gnu/packages/python.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ba350b874..9a2057dcc 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14296,3 +14296,26 @@ system) by avoiding unnecessary calls to os.stat()= in most cases.") =20 (define-public python2-scandir (package-with-python2 python-scandir)) + +(define-public python2-stemming + (package + (name "python2-stemming") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "stemming" version)) + (sha256 + (base32 "0ldwa24gnnxhniv0fhygkpc2mwgd93q10ag8rvzayv6hw418frsr")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2)) + (home-page "https://bitbucket.org/mchaput/stemming/overview") + (synopsis "Python implementations of various stemming algorithms") + (description + "Python implementations of the Porter, Porter2, Paice-Husk, and Lovins +stemming algorithms for English. These implementations are straightforward= and +efficient, unlike some Python versions of the same algorithms available on= the +Web. This package is an extraction of the stemming code included in the Wh= oosh +search engine.") + (license license:public-domain))) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0017-gnu-Add-python-factory-boy.patch =46rom a68b5e8068a1478da32753dd0b8ed5aa11f6ce55 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 22:32:33 +0200 Subject: [PATCH 17/37] gnu: Add python-factory-boy. * gnu/packages/python.scm (python-factory-boy, python2-factory-boy): New va= riables. --- gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 9a2057dcc..8aaa4fbb0 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14319,3 +14319,35 @@ efficient, unlike some Python versions of the same= algorithms available on the Web. This package is an extraction of the stemming code included in the Wh= oosh search engine.") (license license:public-domain))) + +(define-public python-factory-boy + (package + (name "python-factory-boy") + (version "2.8.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "factory_boy" version)) + (sha256 + (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56")))) + (build-system python-build-system) + (arguments + ;; Tests are not included in the tarball. + `(#:tests? #f)) + (propagated-inputs + `(("faker" ,python-faker))) + (home-page "https://github.com/benhoyt/scandir") + (synopsis "Versatile test fixtures replacement") + (description + "Factory_boy is a fixtures replacement based on thoughtbot=E2=80=99s = factory_girl. + +As a fixtures replacement tool, it aims to replace static, hard to maintain +fixtures with easy-to-use factories for complex object. + +Instead of building an exhaustive test setup with every possible combinati= on +of corner cases, factory_boy allows you to use objects customized for the +current test, while only declaring the test-specific fields") + (license license:expat))) + +(define-public python2-factory-boy + (package-with-python2 python-factory-boy)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0018-gnu-Add-python-translate-toolkit.patch =46rom 8ebcec81008d1722633a9ed509bd39901ffffb13 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 17:19:27 +0200 Subject: [PATCH 18/37] gnu: Add python-translate-toolkit. * gnu/packages/python.scm (python-translate-toolkit, python2-translate-tool= kit): New variables. --- gnu/packages/python.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8aaa4fbb0..ae02c2c39 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14351,3 +14351,43 @@ current test, while only declaring the test-specif= ic fields") =20 (define-public python2-factory-boy (package-with-python2 python-factory-boy)) + +(define-public python-translate-toolkit + (package + (name "python-translate-toolkit") + (version "2.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "translate-toolkit" version ".tar.bz2")) + (sha256 + (base32 "1vlkwrg83vb17jc36pmwh2b7jphwf390lz0jw8hakcg16qhwypvq")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-sphinx" ,python-sphinx))) + (propagated-inputs + `(("python-babel" ,python-babel) + ("python-beautifulsoup4" ,python-beautifulsoup4) + ("python-chardet" ,python-chardet) + ("python-diff-match-patch" ,python-diff-match-patch) + ("python-levenshtein" ,python-levenshtein) + ("python-lxml" ,python-lxml) + ("python-six" ,python-six) + ("python-vobject" ,python-vobject) + ("python-pyyaml" ,python-pyyaml))) + (arguments + ;; TODO: tests are not run, because they end with + ;; TypeError: parse() missing 2 required positional arguments: 'tree'= and + ;; 'parse_funcs' + ;; during test setup. + `(#:tests? #f)) + (home-page "http://toolkit.translatehouse.org") + (synopsis "Tools and API for translation and localization engineering") + (description + "Tools and API for translation and localization engineering. It cont= ains +several utilities, as well as an API for building localization tools.") + (license license:gpl2+))) + +(define-public python2-translate-toolkit + (package-with-python2 python-translate-toolkit)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0019-gnu-Add-python-mysqlclient.patch =46rom 26d0ec32192fadd97a8e6145e5499e1061092d87 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 17:24:16 +0200 Subject: [PATCH 19/37] gnu: Add python-mysqlclient. * gnu/packages/python.scm (python-mysqlclient, python2-mysqlclient): New va= riables. --- gnu/packages/python.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ae02c2c39..9a3df386b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14391,3 +14391,38 @@ several utilities, as well as an API for building = localization tools.") =20 (define-public python2-translate-toolkit (package-with-python2 python-translate-toolkit)) + +(define-public python-mysqlclient + (package + (name "python-mysqlclient") + (version "1.3.10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "mysqlclient" version)) + (sha256 + (base32 + "0qkj570x4rbsblji6frvsvp2v1ap32dqzj1lq62zp9515ffsyaj5")))) + (build-system python-build-system) + (native-inputs + `(("mariadb" ,mariadb) + ("nose" ,python-nose) + ("mock" ,python-mock) + ("py.test" ,python-pytest))) + (inputs + `(("mysql" ,mysql) + ("libz" ,zlib) + ("openssl" ,openssl))) + (home-page "https://github.com/PyMySQL/mysqlclient-python") + (synopsis "MySQLdb is an interface to the popular MySQL database serve= r for Python") + (description "MySQLdb is an interface to the popular MySQL database se= rver +for Python. The design goals are: +@enumerate +@item Compliance with Python database API version 2.0 [PEP-0249], +@item Thread-safety, +@item Thread-friendliness (threads will not block each other). +@end enumerate") + (license license:gpl2))) + +(define-public python2-mysqlclient + (package-with-python2 python-mysqlclient)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0020-gnu-Add-python-django-assets.patch =46rom 9f471b09f525f6b8e91a68d5e31023fcfd791a4e Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 18:16:07 +0200 Subject: [PATCH 20/37] gnu: Add python-django-assets. * gnu/packages/django.scm (python-django-assets, python2-django-assets): New variables. --- gnu/packages/django.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 2038473f5..dad777bdf 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -245,3 +245,49 @@ templatetags and a full test suite.") =20 (define-public python2-django-gravatar2 (package-with-python2 python-django-gravatar2)) + +(define-public python-django-assets + (package + (name "python-django-assets") + (version "0.12") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-assets" version)) + (sha256 + (base32 + "0y0007fvkn1rdlj2g0y6k1cnkx53kxab3g8i85i0rd58k335p365")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'fix-tests + (lambda _ + (begin + ;; https://github.com/miracle2k/django-assets/issues/87 + (substitute* "tests/__init__.py" + (("settings.configure.*") + (string-append + "settings.configure(\n" + "INSTALLED_APPS=3D['django_assets', " + "'django.contrib.staticfiles'],\n" + "TEMPLATES=3D[{'BACKEND': " + "'django.template.backends.django.DjangoTemplates'}],\= n" + ")\n"))) + ;; These tests fail + (substitute* "tests/test_django.py" + (("TestLoader") "NoTestLoader")))))))) + (native-inputs + `(("python-nose" ,python-nose))) + (propagated-inputs + `(("python-django" ,python-django) + ("python-webassets" ,python-webassets))) + (home-page "https://github.com/miracle2k/django-assets") + (synopsis "Asset management for Django") + (description + "Asset management for Django, to compress and merge CSS and Javascri= pt +files. Integrates the webassets library with Django, adding support for +merging, minifying and compiling CSS and Javascript files.") + (license license:bsd-2))) + +(define-public python2-django-assets + (package-with-python2 python-django-assets)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0021-gnu-Add-python-django-jsonfield.patch =46rom 589ba386e1b87cdcfe0a64f8fb95f7de32c08038 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 18:18:30 +0200 Subject: [PATCH 21/37] gnu: Add python-django-jsonfield. * gnu/packages/django.scm (python-django-jsonfield, python2-django-jsonfiel= d): New variables. --- gnu/packages/django.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index dad777bdf..7e66491ab 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -291,3 +291,34 @@ merging, minifying and compiling CSS and Javascript fi= les.") =20 (define-public python2-django-assets (package-with-python2 python-django-assets)) + +(define-public python-django-jsonfield + (package + (name "python-django-jsonfield") + (version "1.0.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "jsonfield" version)) + (sha256 + (base32 + "19x4lak0hg9c20r7mvf27w7i8r6i4sg2g0ypmlmp2665fnk76zvy")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'fix-tests + (lambda _ + (substitute* "jsonfield/tests.py" + (("django.forms.util") "django.forms.utils"))))))) + (propagated-inputs + `(("python-django" ,python-django))) + (home-page "https://github.com/bradjasper/django-jsonfield") + (synopsis "Store validated JSON in your model") + (description + "django-jsonfield is a reusable Django field that allows you to store +validated JSON in your model. It silently takes care of serialization. To +use, simply add the field to one of your models.") + (license license:expat))) + +(define-public python2-django-jsonfield + (package-with-python2 python-django-jsonfield)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0022-gnu-Add-python-dj-database-url.patch =46rom 3db79a588ec629297e928c9df5488d5e9743bee1 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 18:28:37 +0200 Subject: [PATCH 22/37] gnu: Add python-dj-database-url. * gnu/packages/django.scm (python-dj-database-url, python2-dj-database-url): New variables. --- gnu/packages/django.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 7e66491ab..903885061 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -322,3 +322,28 @@ use, simply add the field to one of your models.") =20 (define-public python2-django-jsonfield (package-with-python2 python-django-jsonfield)) + +(define-public python-dj-database-url + (package + (name "python-dj-database-url") + (version "0.4.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "dj-database-url" version)) + (sha256 + (base32 + "024zbkc5rli4hia9lz9g8kf1zxhb2gwawj5abf67i7gf8n22v0x6")))) + (build-system python-build-system) + (home-page "https://github.com/kennethreitz/dj-database-url") + (synopsis "Use Database URLs in your Django Application") + (description + "This simple Django utility allows you to utilize the 12factor inspi= red +DATABASE_URL environment variable to configure your Django application. + +The dj_database_url.config method returns a Django database connection +dictionary, populated with all the data specified in your URL. There is al= so a +conn_max_age argument to easily enable Django=E2=80=99s connection pool.") + (license license:bsd-2))) + +(define-public python2-dj-database-url + (package-with-python2 python-dj-database-url)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0023-gnu-Add-python-django-bulk-update.patch =46rom 7215e6f39541472056569becf6f9c79f9179f607 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sun, 23 Apr 2017 13:31:08 +0200 Subject: [PATCH 23/37] gnu: Add python-django-bulk-update. * gnu/packages/django.scm (python-django-bulk-update, python2-django-bulk-u= pdate): New variables. --- gnu/packages/django.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 903885061..4a45961f0 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -347,3 +347,33 @@ conn_max_age argument to easily enable Django=E2=80=99= s connection pool.") =20 (define-public python2-dj-database-url (package-with-python2 python-dj-database-url)) + +(define-public python-django-bulk-update + (package + (name "python-django-bulk-update") + (version "1.1.10") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-bulk-update" version)) + (sha256 + (base32 + "0mbng9m7swfc0dnidipbzlxfhlfjrv755dlnha5s4m9mgdxb1fhc")))) + (build-system python-build-system) + (arguments + ;; tests don't support django 1.10, but the module seems to work. + `(#:tests? #f)) + (native-inputs + `(("six" ,python-six) + ("jsonfield" ,python-django-jsonfield) + ("python-dj-database-url" ,python-dj-database-url))) + (propagated-inputs + `(("python-django" ,python-django))) + (home-page "https://github.com/aykut/django-bulk-update") + (synopsis "Simple bulk update over Django ORM or with helper function") + (description + "Simple bulk update over Django ORM or with helper function. This +project aims to bulk update given objects using one query over Django ORM.= ") + (license license:expat))) + +(define-public python2-django-bulk-update + (package-with-python2 python-django-bulk-update)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0024-gnu-Add-python-django-contact-form.patch =46rom 4398226287a881dd9369cba2b4fc0bf5f4cdb313 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 18:51:24 +0200 Subject: [PATCH 24/37] gnu: Add python-django-contact-form. * gnu/packages/django.scm (python-django-contact-form, python2-django-conta= ct-form): New variables. --- gnu/packages/django.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 4a45961f0..8e4b986c9 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -377,3 +377,38 @@ project aims to bulk update given objects using one qu= ery over Django ORM.") =20 (define-public python2-django-bulk-update (package-with-python2 python-django-bulk-update)) + +(define-public python-django-contact-form + (package + (name "python-django-contact-form") + (version "1.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-contact-form" version)) + (sha256 + (base32 + "0az590y56k5ahv4sixrkn54d3a8ig2q2z9pl6s3m4f533mx2gj17")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; the next version will need "make test" + (and (zero? (system* "flake8" "contact_form")) + (zero? (system* "coverage" "run" "contact_form/runtests.= py")) + (zero? (system* "coverage" "report" "-m" "--fail-under" = "0")))))))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-flake8" ,python-flake8))) + (propagated-inputs + `(("python-django" ,python-django))) + (home-page "https://github.com/ubernostrum/django-contact-form") + (synopsis "Contact form for Django") + (description + "This application provides simple, extensible contact-form functiona= lity +for Django sites.") + (license license:bsd-3))) + +(define-public python2-django-contact-form + (package-with-python2 python-django-contact-form)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0025-gnu-Add-python-django-contrib-comments.patch =46rom 53fc60b9d840aeb1ca9ceb9dd9e615dd139ebddb Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 19:01:33 +0200 Subject: [PATCH 25/37] gnu: Add python-django-contrib-comments. * gnu/packages/django.scm (python-django-contrib-comments, python2-django-contrib-comments): New variables. --- gnu/packages/django.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 8e4b986c9..0e16c54b1 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -412,3 +412,28 @@ for Django sites.") =20 (define-public python2-django-contact-form (package-with-python2 python-django-contact-form)) + +(define-public python-django-contrib-comments + (package + (name "python-django-contrib-comments") + (version "1.8.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-contrib-comments" version)) + (sha256 + (base32 + "0bxsgw8jrkhg6r5s0z6ksfi4w8yknaqb1s9acmxd9pm3pnsnp5kx")))) + (build-system python-build-system) + (propagated-inputs + `(("python-django" ,python-django))) + (home-page "https://github.com/django/django-contrib-comments") + (synopsis "Comments framework") + (description + "Django used to include a comments framework; since Django 1.6 it's = been +separated to a separate project. This is that project. This framework ca= n be +used to attach comments to any model, so you can use it for comments on bl= og +entries, photos, book chapters, or anything else.") + (license license:bsd-3))) + +(define-public python2-django-contrib-comments + (package-with-python2 python-django-contrib-comments)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0026-gnu-Add-python-django-overextends.patch =46rom c6cf2e90b8ef39a01e21301c0140f4cace2de7d2 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 19:08:11 +0200 Subject: [PATCH 26/37] gnu: Add python-django-overextends. * gnu/packages/django.scm (python-django-overextends, python2-django-overex= tends): New variables. --- gnu/packages/django.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 0e16c54b1..05d9b75ed 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -437,3 +437,37 @@ entries, photos, book chapters, or anything else.") =20 (define-public python2-django-contrib-comments (package-with-python2 python-django-contrib-comments)) + +(define-public python-django-overextends + (package + (name "python-django-overextends") + (version "0.4.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-overextends" version)) + (sha256 + (base32 + "0qc2pcf3i56pmfxh2jw7k3pgljd8xzficmkl2541n7bkcbngqfzm")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "./test_project/manage.py" "test"))))))) + (propagated-inputs + `(("python-django" ,python-django))) + (native-inputs + `(("sphinx-me" ,python-sphinx-me))) + (home-page "https://github.com/stephenmcd/django-overextends") + (synopsis "Circular template inheritance") + (description + "A Django reusable app providing the overextends template tag, a dro= p-in +replacement for Django's extends tag, which allows you to use circular tem= plate +inheritance. The primary use-case for overextends is to simultaneously +override and extend templates from other reusable apps, in your own Django +project.") + (license license:bsd-2))) + +(define-public python2-django-overextends + (package-with-python2 python-django-overextends)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0027-gnu-Add-python-hiredis.patch =46rom 1b9cc7bae05b91cd9110dbcdffaefe7e39f9d0d4 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 19:11:48 +0200 Subject: [PATCH 27/37] gnu: Add python-hiredis. * gnu/packages/python.scm (python-hiredis, python2-hiredis): New variables. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 9a3df386b..db5192e15 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14426,3 +14426,27 @@ for Python. The design goals are: =20 (define-public python2-mysqlclient (package-with-python2 python-mysqlclient)) + +(define-public python-hiredis + (package + (name "python-hiredis") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "hiredis" version)) + (sha256 + (base32 + "1dfm2k9l9zar9nw9fwmm74zrgraxdxs04vx9li56fjcf289qx5fa")))) + (build-system python-build-system) + (arguments + ;; no tests + `(#:tests? #f)) + (home-page "https://github.com/redis/hiredis-py") + (synopsis "Python extension that wraps protocol parsing code in hiredi= s") + (description "Python-hiredis is a python extension that wraps protocol +parsing code in hiredis. It primarily speeds up parsing of multi bulk rep= lies.") + (license license:bsd-3))) + +(define-public python2-hiredis + (package-with-python2 python-hiredis)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0028-gnu-Add-python-fakeredis.patch =46rom c27dce21f4fdd65f567dcf8907e1ff5e16598049 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sun, 23 Apr 2017 16:37:02 +0200 Subject: [PATCH 28/37] gnu: Add python-fakeredis. * gnu/packages/python.scm (python-fakeredis, python2-fakeredis): New variab= les. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index db5192e15..c3a30991b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14450,3 +14450,31 @@ parsing code in hiredis. It primarily speeds up p= arsing of multi bulk replies." =20 (define-public python2-hiredis (package-with-python2 python-hiredis)) + +(define-public python-fakeredis + (package + (name "python-fakeredis") + (version "0.8.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "fakeredis" version)) + (sha256 + (base32 + "0zncahj3byyasyfx9i7k991ph0n0lq8v3a21pqri5qxn9564bk9r")))) + (build-system python-build-system) + (arguments + ;; no tests + `(#:tests? #f)) + (home-page "https://github.com/jamesls/fakeredis") + (synopsis "Fake implementation of redis API for testing purposes.") + (description "Fakeredis is a pure python implementation of the redis-py +python client that simulates talking to a redis server. This was created = for a +single purpose: to write unittests. Setting up redis is not hard, but man= y time + you want to write unittests that do not talk to an external server (such = as +redis). This module now allows tests to simply use this module as a reaso= nable +substitute for redis.") + (license license:bsd-3))) + +(define-public python2-fakeredis + (package-with-python2 python-fakeredis)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0029-gnu-Add-python-django-redis.patch =46rom cc99601e8ce5ab658af2cadc974e615d4ec15047 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sun, 23 Apr 2017 16:54:53 +0200 Subject: [PATCH 29/37] gnu: Add python-django-redis. * gnu/packages/django.scm (python-django-redis, python2-django-redis): New variables. --- gnu/packages/django.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 05d9b75ed..59f156234 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -25,6 +25,7 @@ #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages base) + #:use-module (gnu packages databases) #:use-module (gnu packages python)) =20 (define-public python-django @@ -471,3 +472,40 @@ project.") =20 (define-public python2-django-overextends (package-with-python2 python-django-overextends)) + +(define-public python-django-redis + (package + (name "python-django-redis") + (version "4.7.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-redis" version)) + (sha256 + (base32 + "0yyyxv8n9l9dhs893jsqwg2cxqkkc79g719n9dzzzqgkzialv1c1")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (and (zero? (system* "redis-server" "--daemonize" "yes")) + (with-directory-excursion "tests" + (zero? (system* "python" "runtests.py"))))))))) + (native-inputs + `(("python-fakeredis" ,python-fakeredis) + ("python-hiredis" ,python-hiredis) + ("python-mock" ,python-mock) + ("python-msgpack" ,python-msgpack) + ("redis" ,redis))) + (propagated-inputs + `(("python-django" ,python-django) + ("python-redis" ,python-redis))) + (home-page "https://github.com/niwibe/django-redis") + (synopsis "Full featured redis cache backend for Django") + (description + "Full featured redis cache backend for Django.") + (license license:bsd-3))) + +(define-public python2-django-redis + (package-with-python2 python-django-redis)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0030-gnu-Add-python-django-rq.patch =46rom 5e7070140b6af6c26c140d495edcfc89d88f77e5 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 19:14:03 +0200 Subject: [PATCH 30/37] gnu: Add python-django-rq. * gnu/packages/django.scm (python-django-rq, python2-django-rq): New variab= les. --- gnu/packages/django.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 59f156234..2527a4a03 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -509,3 +509,39 @@ project.") =20 (define-public python2-django-redis (package-with-python2 python-django-redis)) + +(define-public python-django-rq + (package + (name "python-django-rq") + (version "0.9.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-rq" version)) + (sha256 + (base32 + "04v8ilfdp10bk31fxgh4cn083gsn5m06342cnpm5d10nd8hc0vky")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (and (zero? (system* "redis-server" "--daemonize" "yes")) + (zero? (system* "django-admin.py" "test" "django_rq" + "--settings=3Ddjango_rq.test_settings" + "--pythonpath=3D")))))))) + (native-inputs + `(("redis" ,redis))) + (propagated-inputs + `(("python-django" ,python-django) + ("python-rq" ,python-rq))) + (home-page "https://github.com/ui/django-rq") + (synopsis "Django integration with RQ") + (description + "Django integration with RQ, a Redis based Python queuing library. +Django-RQ is a simple app that allows you to configure your queues in djan= go's +settings.py and easily use them in your project.") + (license license:expat))) + +(define-public python2-django-rq + (package-with-python2 python-django-rq)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0031-gnu-Add-python-django-sortedm2m.patch =46rom 125a0f3c11f4670f237b881b7dc563b47fbe5cb1 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 19:18:02 +0200 Subject: [PATCH 31/37] gnu: Add python-django-sortedm2m. * gnu/packages/django.scm (python-django-sortedm2m, python2-django-sortedm2= m): New variables. --- gnu/packages/django.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 2527a4a03..a7587988c 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -545,3 +545,30 @@ settings.py and easily use them in your project.") =20 (define-public python2-django-rq (package-with-python2 python-django-rq)) + +(define-public python-django-sortedm2m + (package + (name "python-django-sortedm2m") + (version "1.3.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-sortedm2m" version)) + (sha256 + (base32 + "0axf765i7b3c2s83nlph47asi8s071dhq8l7y382v1pw785s22vi")))) + (build-system python-build-system) + (arguments + ;; no tests. + `(#:tests? #f)) + (propagated-inputs + `(("python-django" ,python-django))) + (home-page "https://github.com/gregmuellegger/django-sortedm2m") + (synopsis "drop-in replacement for django's own ManyToManyField") + (description + "Sortedm2m is a drop-in replacement for django's own ManyToManyField. +The provided SortedManyToManyField behaves like the original one but remem= bers +the order of added relations.") + (license license:bsd-3))) + +(define-public python2-django-sortedm2m + (package-with-python2 python-django-sortedm2m)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0032-gnu-Add-python-django-appconf.patch =46rom 5c4ad444814f3790ac296c954fdde73673c67afb Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 19:18:46 +0200 Subject: [PATCH 32/37] gnu: Add python-django-appconf. * gnu/packages/django.scm (python-django-appconf, python2-django-appconf): New variables. --- gnu/packages/django.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index a7587988c..562025968 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -572,3 +572,29 @@ the order of added relations.") =20 (define-public python2-django-sortedm2m (package-with-python2 python-django-sortedm2m)) + +(define-public python-django-appconf + (package + (name "python-django-appconf") + (version "1.0.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-appconf" version)) + (sha256 + (base32 + "0qdjdx35g66xjsc50v0c5h3kg6njs8df33mbjx6j4k1vd3m9lkba")))) + (build-system python-build-system) + (propagated-inputs + `(("python-django" ,python-django))) + (home-page "https://github.com/django-compressor/django-appconf") + (synopsis "Handle configuration defaults of packaged Django apps") + (description + "This app precedes Django's own AppConfig classes that act as \"obje= cts +[to] store metadata for an application\" inside Django's app loading mecha= nism. +In other words, they solve a related but different use case than +django-appconf and can't easily be used as a replacement. The similarity = in +name is purely coincidental.") + (license license:bsd-3))) + +(define-public python2-django-appconf + (package-with-python2 python-django-appconf)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0033-gnu-Add-python-django-statici18n.patch =46rom dc5134cba89e0f24e566a7c5f38bfd63ef9e3509 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 19:19:19 +0200 Subject: [PATCH 33/37] gnu: Add python-django-statici18n. * gnu/packages/django.scm (python-django-statici18n, python2-django-statici= 18n): New variables. --- gnu/packages/django.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 562025968..472cf70aa 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -598,3 +598,27 @@ name is purely coincidental.") =20 (define-public python2-django-appconf (package-with-python2 python-django-appconf)) + +(define-public python-django-statici18n + (package + (name "python-django-statici18n") + (version "1.3.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-statici18n" version)) + (sha256 + (base32 + "0alcf4g1nv69njhq5k3qw4mfl2k6dc18bik5nk0g1mnp3m8zyz7k")))) + (build-system python-build-system) + (propagated-inputs + `(("python-django" ,python-django) + ("django-appconf" ,python-django-appconf))) + (home-page "https://github.com/zyegfryed/django-statici18n") + (synopsis "Generate JavaScript catalog to static files") + (description + "A Django app that provides helper for generating JavaScript catalog= to +static files.") + (license license:bsd-3))) + +(define-public python2-django-statici18n + (package-with-python2 python-django-statici18n)) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0034-gnu-python-pytest-django-Update-to-3.1.2.patch =46rom b14b147fc08b10c85f3133e6924c5d1fda253613 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 21:46:03 +0200 Subject: [PATCH 34/37] gnu: python-pytest-django: Update to 3.1.2. * gnu/packages/django.scm (python-pytest-django, python2-pytest-django): Update to 3.1.2. --- gnu/packages/django.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 472cf70aa..7c2abc243 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -129,13 +129,13 @@ with arguments to the field constructor.") (define-public python-pytest-django (package (name "python-pytest-django") - (version "2.9.1") + (version "3.1.2") (source (origin (method url-fetch) (uri (pypi-uri "pytest-django" version)) (sha256 (base32 - "1mmc7zsz3dlhs6sx4sppkj1vgshabi362r1a8b8wpj1qfximpqcb")))) + "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303")))) (build-system python-build-system) (arguments `(#:tests? #f ; FIXME: How to run tests? @@ -144,7 +144,7 @@ with arguments to the field constructor.") (add-after 'unpack 'patch-setuppy (lambda _ (substitute* "setup.py" - (("setuptools_scm=3D=3D1.8.0") "setuptools_scm")) + (("setuptools_scm=3D=3D1.11.1") "setuptools_scm"= )) #t))))) (native-inputs `(("python-django" ,python-django) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0035-gnu-python-pytest-cov-Update-to-2.4.0.patch =46rom 16c40374bf4da452f995c914996fbf2a997cedef Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 21:52:16 +0200 Subject: [PATCH 35/37] gnu: python-pytest-cov: Update to 2.4.0. * gnu/packages/python.scm (python-pytest-cov, python2-pytest-cov): Update to 2.4.0. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c3a30991b..f7f29b255 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1843,14 +1843,14 @@ and many external plugins.") (define-public python-pytest-cov (package (name "python-pytest-cov") - (version "2.2.1") + (version "2.4.0") (source (origin (method url-fetch) (uri (pypi-uri "pytest-cov" version)) (sha256 (base32 - "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8")))) + "03c2qc42r4bczyw93gd7n0qi1h1jfhw7fnbhi33c3vp1hs81gm2k")))) (build-system python-build-system) (arguments `(#:phases --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0036-gnu-Fix-python2-django-allauth.patch =46rom e19c9850640946c71e5d0eb17474e24a76da7175 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 21:09:47 +0200 Subject: [PATCH 36/37] gnu: Fix python2-django-allauth. * gnu/packages/python.scm (python-openid)[properties]: Use python2-variant. --- gnu/packages/django.scm | 1 + gnu/packages/python.scm | 1 + 2 files changed, 2 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 7c2abc243..2a661c03f 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -222,6 +222,7 @@ account authentication.") =20 (define-public python2-django-allauth (package-with-python2 python-django-allauth)) + =20 =20 (define-public python-django-gravatar2 (package diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f7f29b255..7519d51fc 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5521,6 +5521,7 @@ features useful for text console applications.") (base32 "1x3nh3fycqfn43jp5j5pb4q4y2jxp4mdka4absaa3bc0078qd758")))) (build-system python-build-system) + (properties `((python2-variant . ,(delay python2-openid)))) (home-page "https://github.com/necaris/python3-openid") (synopsis "OpenID support for servers and consumers") (description "This library provides OpenID authentication for Python, = both --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0037-gnu-Add-pootle.patch =46rom 4ea9d757a191fe27b3a34a7edbd181e4d590f91d Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 22 Apr 2017 23:11:07 +0200 Subject: [PATCH 37/37] gnu: Add pootle. * gnu/packages/django.scm (pootle): New variable. --- gnu/packages/django.scm | 72 +++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 2a661c03f..6cce56776 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -623,3 +623,75 @@ static files.") =20 (define-public python2-django-statici18n (package-with-python2 python-django-statici18n)) + +(define-public pootle + (package + (name "pootle") + (version "2.8.0rc5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Pootle" version ".tar.bz2")) + (sha256 + (base32 + "0m6qcpkcy22dk3ad5y2k8851kqg2w6vrkywgy4vabwbacd7r1mvn")))) + (build-system python-build-system) + (arguments + `(; pootle supports only python2. + #:python ,python-2 + ;; tests are not run and fail with "pytest_pootle/data/po/.tmp: No = such + ;; file or directory". If we create this directory, + ;; pytest_pootle/data/po/terminology.po is missing. + #:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-requirements + (lambda _ + (substitute* "Pootle.egg-info/requires.txt" + (("1.7.3") "1.8.0") + (("2.0.0") "2.1.0")) + (substitute* "requirements/tests.txt" + (("=3D=3D3.0.6") ">=3D3.0.6")) + (substitute* "requirements/base.txt" + (("1.7.3") "1.8.0") + (("2.0.0") "2.1.0"))))))) + (propagated-inputs + `(("django-allauth" ,python2-django-allauth) + ("django-assets" ,python2-django-assets) + ("django-bulk-update" ,python2-django-bulk-update) + ("django-contact-form" ,python2-django-contact-form) + ("django-contrib-comments" ,python2-django-contrib-comments) + ("django-overextends" ,python2-django-overextends) + ("django-redis" ,python2-django-redis) + ("django-rq" ,python2-django-rq) + ("django-sortedm2m" ,python2-django-sortedm2m) + ("django-statici18n" ,python2-django-statici18n) + ("babel" ,python2-babel) + ("cssmin" ,python2-cssmin) + ("diff-match-patch" ,python2-diff-match-patch) + ("dirsync" ,python2-dirsync) + ("elasticsearch" ,python2-elasticsearch) + ("jsonfield" ,python2-django-jsonfield) + ("lxml" ,python2-lxml) + ("dateutil" ,python2-dateutil) + ("levenshtein" ,python2-levenshtein) + ("mysqlclient" ,python2-mysqlclient) + ("psycopg2" ,python2-psycopg2) + ("pytz" ,python2-pytz) + ("rq" ,python2-rq) + ("scandir" ,python2-scandir) + ("stemming" ,python2-stemming) + ("translate-toolkit" ,python2-translate-toolkit))) + (native-inputs + `(("python2-pytest-warnings" ,python2-pytest-warnings) + ("python2-pytest-django" ,python2-pytest-django) + ("python2-pytest-catchlog" ,python2-pytest-catchlog) + ("python2-pytest-cov" ,python2-pytest-cov) + ("python2-factory-boy" ,python2-factory-boy))) + (home-page "http://pootle.translatehouse.org/") + (synopsis "Community localization server") + (description + "Pootle is an online translation and localization tool. It works to +lower the barrier of entry, providing tools to enable teams to work towards +higher quality while welcoming newcomers.") + (license license:gpl3+))) --=20 2.12.2 --MP_/+TA6WapVYnZnP_I5kz550R1--