From: Leo Famulari <leo@famulari.name>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add python-psycopg2, python2-psycopg2
Date: Fri, 19 Feb 2016 16:22:58 -0500 [thread overview]
Message-ID: <20160219212258.GA4418@jasmine> (raw)
In-Reply-To: <20160219120106.62631a44@scratchpost.org>
On Fri, Feb 19, 2016 at 12:01:06PM +0100, Danny Milosavljevic wrote:
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
Thanks for the patch!
Unfortunately, python.scm has changed since you made the patch, so the
patch no longer applies. Can you rebase on the current master and
regenerate the patch, incorporating the changes suggest below?
The commit message should include a line describing the changes. You
can find some examples of the desired format in the git log.
And don't forget to add your name to the list of authors at the top of
the file :)
> index 3dd3862..f121d27 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -7529,3 +7529,32 @@ available in Django, but is a standalone package.")
> (inherit (package-with-python2
> (strip-python2-variant python-wtforms)))
> (inputs `(("python2-setuptools" ,python2-setuptools)))))
> +
> +(define-public python-psycopg2
> + (package
> + (name "python-psycopg2")
> + (version "2.6.1")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "psycopg2" version ".tar.gz"))
".tar.gz" is the default pypi-uri extension, so you can leave it out.
> + (sha256
> + (base32
> + "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva"))))
> + (build-system python-build-system)
> + (arguments
> + `(#:tests? #f)) ; TODO re-enable
Why are the tests disabled?
> + (inputs
> + `(("postgresql" ,postgresql))) ; libpq
> + (home-page "http://initd.org/psycopg/")
> + (synopsis "Python PostgreSQL adapter")
> + (description
> + "psycopg2 is a PostgreSQL adapter that implements DB-API 2.0")
The description should be a complete sentence, with a period at the end.
Bonus points for more detail :)
> + (license lgpl3+)
> + (properties `((python2-variant . ,(delay python2-psycopg2))))))
> +
> +(define-public python2-psycopg2
> + (package
> + (inherit (package-with-python2
> + (strip-python2-variant python-psycopg2)))
> + (inputs `(("python2-setuptools" ,python2-setuptools)))))
Setuptools is typically used only at build time, so it should be a
native input.
next prev parent reply other threads:[~2016-02-19 21:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-19 11:01 [PATCH] gnu: Add python-psycopg2, python2-psycopg2 Danny Milosavljevic
2016-02-19 21:22 ` Leo Famulari [this message]
2016-02-22 0:39 ` Danny Milosavljevic
2016-02-22 2:38 ` Christopher Allan Webber
2016-02-24 22:39 ` [PATCH v2] " Danny Milosavljevic
2016-02-25 0:05 ` Christopher Allan Webber
2016-02-25 0:52 ` [PATCH v3] " Danny Milosavljevic
2016-02-25 17:53 ` Christopher Allan Webber
2016-02-25 19:30 ` Leo Famulari
2016-02-25 21:28 ` Christopher Allan Webber
2016-02-25 21:35 ` Leo Famulari
2016-02-25 22:22 ` Danny Milosavljevic
2016-02-25 22:45 ` Christopher Allan Webber
2016-02-25 23:13 ` Leo Famulari
2016-02-25 23:52 ` Christopher Allan Webber
2016-02-22 2:39 ` [PATCH] " Christopher Allan Webber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160219212258.GA4418@jasmine \
--to=leo@famulari.name \
--cc=dannym@scratchpost.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).