From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDA3u-0003vF-Uh for guix-patches@gnu.org; Thu, 18 Oct 2018 11:18:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDA3p-0003KI-Um for guix-patches@gnu.org; Thu, 18 Oct 2018 11:18:10 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDA3n-0003Iz-0g for guix-patches@gnu.org; Thu, 18 Oct 2018 11:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gDA3m-0004ze-OK for guix-patches@gnu.org; Thu, 18 Oct 2018 11:18:02 -0400 Subject: [bug#33089] [PATCH] New package: python-ilinkedlist Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDA2q-0003H6-Pk for guix-patches@gnu.org; Thu, 18 Oct 2018 11:17:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDA2p-0002EB-00 for guix-patches@gnu.org; Thu, 18 Oct 2018 11:17:04 -0400 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]:44716) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDA2o-0002DL-Oa for guix-patches@gnu.org; Thu, 18 Oct 2018 11:17:02 -0400 Received: by mail-qk1-x743.google.com with SMTP id y8-v6so18968493qka.11 for ; Thu, 18 Oct 2018 08:17:02 -0700 (PDT) Received: from localhost ([2601:c6:cf00:1c9::6636]) by smtp.gmail.com with ESMTPSA id t188-v6sm11360901qkc.58.2018.10.18.08.17.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Oct 2018 08:17:01 -0700 (PDT) Date: Thu, 18 Oct 2018 11:16:39 -0400 From: Luther Thompson Message-ID: <20181018111639.4aa7dc1c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: 33089@debbugs.gnu.org I've written a Python module. Here is my package definition for it. Please let me know if I can make any improvements. ---BEGIN--- diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8261fefd9..59917feb7 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14473,3 +14473,28 @@ extend common interfaces like NumPy, Pandas, or Python iterators to larger-than-memory or distributed environments. These parallel collections run on top of the dynamic task schedulers. ") (license license:bsd-3))) + +(define-public python-ilinkedlist + (package + (name "python-ilinkedlist") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ilinkedlist" version)) + (sha256 + (base32 + "063c2gm4jkgkv0nsg7mrc8y0w82ms98l4xchmbrvr68cscglhk69")))) + (build-system python-build-system) + (native-inputs `(("python-pytest" ,python-pytest))) + (inputs `(("python" ,python))) + (home-page "https://github.com/luther9/ilinkedlist-py") + (synopsis "Immutable linked list library") + (description + "This is a implementation of immutable linked lists for Python. It +contains @code{nil} (the empty linked list) and a @code{Pair} class for nodes. +Since a linked list is treated as immutable, it is hashable, and its length can +be retrieved in constant time. Some of the terminology is inspired by LISP. It +is possible to create an improper list by creating a @code{Pair} with a non-list +@code{cdr}.") + (license license:gpl3+))) ---END--- I sent this message last night, but I don't see it in the archives, so I'm sending it again. Regards, Luther Thompson