From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 18 11:17:18 2018 Received: (at submit) by debbugs.gnu.org; 18 Oct 2018 15:17:18 +0000 Received: from localhost ([127.0.0.1]:57273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDA34-0004yd-2d for submit@debbugs.gnu.org; Thu, 18 Oct 2018 11:17:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDA31-0004yP-NV for submit@debbugs.gnu.org; Thu, 18 Oct 2018 11:17:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDA2u-0002Iv-W7 for submit@debbugs.gnu.org; Thu, 18 Oct 2018 11:17:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43861) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gDA2s-0002H0-QD for submit@debbugs.gnu.org; Thu, 18 Oct 2018 11:17:06 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=ZqPDO0BOXklBUtH/9mej3mGdp/+WnA+IvNwkfPWYank=; b=S8ldTgO6mo7/9CrexwCRRs8qRqd0ekQABkgDB+ndC4s4dJZOAYT1F13G93F1leYYwp HwIQ9ThHZSVWewybqirrJzjPzTcf33/qEhcXcU2IAmSkbHxNBz//LSh1DLW3w0yxPW57 /pQyYtLTJjPw5TP004ebBM7HlzGmPJBrr+aAD5j5r9TxgJdhDHp9ywnzhC06nWbX2cqv FYYYuxG2406l7UwwMZnvyIgvx3Q1ULcl3UoVEFzGZm5+5SBY1FgmXEsrpLjdlgj9FR5w GQDPs8lX/fcYfVz7w8A7zSPUYQ4fTzDQXA/ngGzEBBewraFQTDSkgKiZFFE+Iskh4upA s3HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=ZqPDO0BOXklBUtH/9mej3mGdp/+WnA+IvNwkfPWYank=; b=Zl6SkN36fUZOw6Fiw2nEXrOYBE17jXFHd7F0XyWqfZ06Nqi8/TTC6bvToIdOhvcBhC JyELyRWezPJt3tk/ea77D9hKclRnM6uf4HeP+sqcunk0wb43z6tux3GQL2lrqyuJKbs8 cYNtE8XlnmmrZqz3Lg/dRXZgcpiPtvc21iA+Tncgx+LF6JDtDpy5OsPnPQK4shvwHD0q HSNfzgyVc/HTysEm/T/0SL8BzUibj+t+sABK+Z4ffFPNkHHl5l+kBc+buFAodMJt1Oid igSi/SqfuSk5S+rLkgCRQst6afvjBeDNqHUbZX9RDN82wKLkH8hOVuetUgFV7OkTfOlg iFHw== X-Gm-Message-State: ABuFfohDTTRJwfchuBcWztW7SZ2wqo8uAIWJgBIA/TkRdQAEhWQQIO+e EbyBnNACUFRv8cTBIwk25+0DHRHF X-Google-Smtp-Source: ACcGV61mLBvLSinXN+kconJq/Wx2ugHlu9uld3IFi6OtOf7y4UTyKbosSZVv4MBM+LnLcmI17wVkGQ== X-Received: by 2002:a37:4a96:: with SMTP id x144-v6mr29913759qka.112.1539875821182; Thu, 18 Oct 2018 08:17:01 -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 To: guix-patches@gnu.org Subject: [PATCH] New package: python-ilinkedlist Message-ID: <20181018111639.4aa7dc1c@gmail.com> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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