From patchwork Sun Nov 21 21:23:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 34731 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2ECED27BBE3; Sun, 21 Nov 2021 21:24:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5ABD927BBE1 for ; Sun, 21 Nov 2021 21:24:13 +0000 (GMT) Received: from localhost ([::1]:34262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mouJo-0000z2-GQ for patchwork@mira.cbaines.net; Sun, 21 Nov 2021 16:24:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mouJd-0000yO-V8 for guix-patches@gnu.org; Sun, 21 Nov 2021 16:24:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mouJd-0006r3-MW for guix-patches@gnu.org; Sun, 21 Nov 2021 16:24:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mouJd-0007fS-Iu for guix-patches@gnu.org; Sun, 21 Nov 2021 16:24:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52028] [core-updates-frozen] [PATCH] gnu: python-nautilus: Remove package. References: In-Reply-To: Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 Nov 2021 21:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52028 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "52028@debbugs.gnu.org" <52028@debbugs.gnu.org> Received: via spool by 52028-submit@debbugs.gnu.org id=B52028.163752982729454 (code B ref 52028); Sun, 21 Nov 2021 21:24:01 +0000 Received: (at 52028) by debbugs.gnu.org; 21 Nov 2021 21:23:47 +0000 Received: from localhost ([127.0.0.1]:46234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mouJP-0007f0-1Y for submit@debbugs.gnu.org; Sun, 21 Nov 2021 16:23:47 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]:29295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mouJN-0007ek-3b for 52028@debbugs.gnu.org; Sun, 21 Nov 2021 16:23:46 -0500 Date: Sun, 21 Nov 2021 21:23:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1637529814; bh=q98+dd/bIA4j4QThANJ7vat1M7jgItmqk+JnS+CVa04=; h=Date:To:From:Reply-To:Subject:From; b=RE4qeuoOcykJggp0xyJ+yY62PR3/q6nbhKExFKV/pNesVeCHs+vY5sBoH1zu3UY9E 2GxTxo6tLDbMdUhrBXQ/CwhCquHQVD+Qi7eMS3OIDW66mY47qpw+Orulmw7vHy+Y+V jhZ1oRmwwRgXUhkVEidcl3vK0O2CH9s7oip0D5go= Message-ID: <16mmmAFEE7vCWIebceljY2KxU8PsSPMrCh7h_KzRela_YVi4lJNyaVsEaKkNFadNpqC-zwWETIVRN3KHHPf5ak3eaugjyHvQjAmcA9fAXvo=@protonmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias X-getmail-retrieved-from-mailbox: Patches Rather than open a bug report for a soon-to-be-removed package, I'm attaching the diff here. Please do not apply it. I added a few packages that were needed as I made changes and updates, in case this is useful to someone down the line. I also did a hacky workaround of python-nautilus having some template files getting compiled that probably should be skipped. Copying them to /tmp and back afterward was probably not how we should do it, but again, in case someone wants to revive this package. I should note that build failure was new on core-updates-frozen and this diff fails on the sanity-check. Again, the actual patch is in the first message, this is just a diff in case someone wants to revive python-nautilus (though check again, probably want nautilus-python from Gnome). John diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e882659d4b..c9801f14f1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15321,14 +15321,14 @@ (define-public python2-tabulate (define-public python-kazoo (package (name "python-kazoo") - (version "2.4.0") + (version "2.8.0") (source (origin (method url-fetch) (uri (pypi-uri "kazoo" version)) (sha256 (base32 - "16y213k7r8shyn2zw1k6lkzjgcrvm441pqv8scvcjixhvpbx3hm7")))) + "1zpj5cc8624w6i0pxgcxqkjwbkm4pkrv19d7wh5df3jais32g3jq")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; XXX: needs zookeeper (propagated-inputs @@ -16948,31 +16948,151 @@ (define-public python-graphene with an associated set of resolve methods that know how to fetch data.") (license license:expat))) +(define-public python-aiohttp-session + (package + (name "python-aiohttp-session") + (version "2.9.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiohttp-session" version)) + (sha256 + (base32 "0x7b5bl36d045l320v0g5rm0c000zdy626cpl1y0xqw4id31754m")))) + (build-system python-build-system) + (propagated-inputs (list python-aiohttp python-cryptography python-pynacl)) + (home-page "https://github.com/aio-libs/aiohttp_session/") + (synopsis "sessions for aiohttp.web") + (description "sessions for aiohttp.web") + (license #f))) + +(define-public python-aiohttp-jinja2 + (package + (name "python-aiohttp-jinja2") + (version "1.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiohttp-jinja2" version)) + (sha256 + (base32 "02wiky2ra4nbdxgb5lpb29bsg8pwg4nsyd05wps93dk0q3maafvw")))) + (build-system python-build-system) + (propagated-inputs + (list python-aiohttp python-jinja2 python-typing-extensions)) + (native-inputs + (list python-pytest)) + (home-page "https://github.com/aio-libs/aiohttp_jinja2/") + (synopsis + "jinja2 template renderer for aiohttp.web (http server for asyncio)") + (description + "jinja2 template renderer for aiohttp.web (http server for asyncio)") + (license #f))) + +(define-public python-aiohttp-cors + (package + (name "python-aiohttp-cors") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiohttp_cors" version)) + (sha256 + (base32 "0pczn54bqd32v8zhfbjfybiza6xh1szwxy6as577dn8g23bwcfad")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; some (all?) tests need http access + (propagated-inputs (list python-aiohttp + python-selenium ; for tests + python-typing)) + (native-inputs + (list python-pytest python-pytest-cov python-pytest-runner)) ; for tests + (home-page "https://github.com/aio-libs/aiohttp-cors") + (synopsis "CORS support for aiohttp") + (description "CORS support for aiohttp") + (license license:asl2.0))) + +(define-public python-kafka-python + (package + (name "python-kafka-python") + (version "2.0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "kafka-python" version)) + (sha256 + (base32 "1qypm52iv81kvb2khrj0fj6n17bhdvca4y9ydz6jcdxnlbzfgpq4")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; need to manually copy tox.ini? + (native-inputs (list python-tox)) + (home-page "https://github.com/dpkp/kafka-python") + (synopsis "Pure Python client for Apache Kafka") + (description "Pure Python client for Apache Kafka") + (license #f))) + +(define-public python-aiokafka + (package + (name "python-aiokafka") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiokafka" version)) + (sha256 + (base32 "15ih5hn7jin0vliqjk5g7pv5fm5zgsp97jxfhfa8gn1ihz8l3z58")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; some (all?) tests need http access + (propagated-inputs (list python-dataclasses python-kafka-python)) + (home-page "http://aiokafka.readthedocs.org") + (synopsis "Kafka integration with asyncio.") + (description "Kafka integration with asyncio.") + (license #f))) + (define-public python-nautilus (package (name "python-nautilus") - (version "0.4.9") + (version "0.5.2") (source (origin (method url-fetch) (uri (pypi-uri "nautilus" version)) (sha256 (base32 - "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p")))) + "1phdams5zqjfmaaf0dzcp37rndcrfb78qxx3lhqmwvswq60hnibj")))) (build-system python-build-system) - (arguments `(#:tests? #f)) ; fails to import test modules + (arguments + `(#:tests? #f ; fails to import test modules + #:phases + (modify-phases %standard-phases + (add-before 'build 'move-templates + (lambda _ + (copy-recursively "nautilus/management/templates" "/tmp/naut") + (delete-file-recursively "nautilus/management/templates") + #t)) + (add-after 'install 'restore-templates + (lambda* (#:key outputs #:allow-other-keys) + (let ((lib (string-append (assoc-ref outputs "out") "/lib/python3.9/site-packages/nautilus/management/templates"))) + (copy-recursively "/tmp/naut" lib)) + #t))))) (propagated-inputs - `(("python-bcrypt" ,python-bcrypt) + `(("python-aiohttp" ,python-aiohttp) + ("python-aiohttp-cors" ,python-aiohttp-cors) + ("python-aiohttp-jinja2" ,python-aiohttp-jinja2) + ("python-aiokafka" ,python-aiokafka) + ("python-aiohttp-session" ,python-aiohttp-session) + ("python-pykafka" ,python-pykafka) + ("python-bcrypt" ,python-bcrypt) ("python-click" ,python-click) ("python-consul" ,python-consul) + ("python-cryptography" ,python-cryptography) ("python-graphene" ,python-graphene) ("python-jinja2" ,python-jinja2) ("python-peewee" ,python-peewee) - ("python-pika" ,python-pika) - ("python-tornado" ,python-tornado) - ("python-wtforms" ,python-wtforms))) + ("python-pyjwt" ,python-pyjwt) + ("python-uvloop" ,python-uvloop))) (native-inputs - `(("python-nose2" ,python-nose2))) + `(("python-nose2" ,python-nose2) + ("python-pytest" ,python-pytest))) (home-page "https://github.com/AlecAivazis/nautilus") (synopsis "Library for creating microservice applications") (description