From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oN8LKXV76WM+TAAAbAwnHQ (envelope-from ) for ; Mon, 13 Feb 2023 00:51:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EDkBKXV76WMVGQEAauVa8A (envelope-from ) for ; Mon, 13 Feb 2023 00:51:17 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5540C15033 for ; Mon, 13 Feb 2023 00:51:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRM7d-0001Xc-W6; Sun, 12 Feb 2023 18:51:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRM7b-0001X5-AF for guix-patches@gnu.org; Sun, 12 Feb 2023 18:51:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRM7b-0004bD-2F for guix-patches@gnu.org; Sun, 12 Feb 2023 18:51:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRM7a-000155-UH for guix-patches@gnu.org; Sun, 12 Feb 2023 18:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61464] [PATCH 1/2] gnu: python-construct: Update to 2.10.68. References: <20230212234832.25245-1-sharlatanus@gmail.com> In-Reply-To: <20230212234832.25245-1-sharlatanus@gmail.com> Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Feb 2023 23:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61464 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61464@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 61464-submit@debbugs.gnu.org id=B61464.16762458094079 (code B ref 61464); Sun, 12 Feb 2023 23:51:02 +0000 Received: (at 61464) by debbugs.gnu.org; 12 Feb 2023 23:50:09 +0000 Received: from localhost ([127.0.0.1]:47149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRM6j-00013c-9X for submit@debbugs.gnu.org; Sun, 12 Feb 2023 18:50:09 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:54082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRM6g-00012u-DP for 61464@debbugs.gnu.org; Sun, 12 Feb 2023 18:50:08 -0500 Received: by mail-wm1-f52.google.com with SMTP id u10so7591927wmj.3 for <61464@debbugs.gnu.org>; Sun, 12 Feb 2023 15:50:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IUGHunpb0xnPdwLFlVCCxQSJZv/ISJDyumOro1aWHko=; b=UGeRF7AOMCSdj+0iU3I/TF3qOJfxZTG8dy9qKyimUQdjasdWHf7G7fvoBD+HbmwMAD fG9dF/gHVvkNBJ0rFoUpXmKUCGHsYA6yYxOYbqzYjGK2pPnDLedlTiX3Sb4dVvGGuD9g 6VLelJX4yk/mYMOuwe+Tg6tH+Movete6NABVRfGqhlmgGWfa9CeHoiVNWzydCgxSNq8a XoH73bjMUoCL6fqhE3xGWULDUekHGDAW7jfpVtmRdM80uWUQ4H4tO/krbHYejG8do9Il VPX8qZo5p9P9ssqEPpEfmL7+5CMlc4sT1ju3EPuSNIbqvUEKLJDsv689YlDXyOXOD3N6 AxNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IUGHunpb0xnPdwLFlVCCxQSJZv/ISJDyumOro1aWHko=; b=U3OTSXm1y3rkH02Fl1YDiRlyc7U+KWm/knBIBD8X2XNwdRgvTMxOOcZjCqxksK8LVd P+tMD/AR8zpyKeyr5c2gl23yUZhUYsvvodlZIhf5eA7oPkR9VuZrf8GNRnFlEYzn4ZKk DGlB2Vqb3QmbeOmH4oeYUvDaVDxHmh9g7k+TF5mH4d+XIxLYfPUL4ZYumOW6ehY5c2po 1vVsESaXGCjO0X2y6v8A/JYtPlncraAQf7zNupd01CmjMSSZGuLtIfEcWSvTAz9IC82H Bn41qUC3Opn2l76i7KHArIQrpRhh0hkW1TKuTenCtYYTX52T9F4BeV5x3QwBINoQQQSj fshg== X-Gm-Message-State: AO0yUKWOzmoN/nUr2CdbrJKIOg9YiyPzenUecyLAuaHbjef2iyOT5zqB ZPlJXvtyI4E7ZcGmESF5ebBfuUE5pis= X-Google-Smtp-Source: AK7set9AvMh3bA/PR35wQ5cvg/hQMyYBn3dpsFYvR0xWUSfx+ZkjZF3O5RFDgQkRLVu+kUGrN6pRSQ== X-Received: by 2002:a05:600c:1656:b0:3e0:c4b:18f5 with SMTP id o22-20020a05600c165600b003e00c4b18f5mr17492504wmn.5.1676245800547; Sun, 12 Feb 2023 15:50:00 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id l19-20020a05600c2cd300b003dfefe115b9sm13458897wmc.0.2023.02.12.15.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:50:00 -0800 (PST) From: Sharlatan Hellseher Date: Sun, 12 Feb 2023 23:49:56 +0000 Message-Id: <20230212234957.25326-1-sharlatanus@gmail.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676245877; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IUGHunpb0xnPdwLFlVCCxQSJZv/ISJDyumOro1aWHko=; b=BwpCTurom7KwRzZUCJBMHXZS6r88QY7df3+g9PiguGxPzsCoYPjiidoHz8DQQP0KwtcZZn fmPtoZiJPr9dbB4Z7UbZy/ehMMnUxAkCSxtiDZYNrApoOiNvsafXhuTVLsAZTOQlDt5na7 xVWYdcAp7RQLglP4Wn6eXlQ2rExtwYuqDFj2Gw3/+Q1ypYKuX8yxWGS1S7QsRuTu2xLSo8 L4DFLnJzwSvez3JXEaxkeziuLy2I8Vl9JqE0YUWTrZOWhfSr26T1JMCPmYaRlhJzrTVj1C wmTYABOl0m4WLvPQleCvfLKfJOHWhr9zwTe6fYaqz995Hn1TRla3ZcPq20nP7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=UGeRF7AO; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676245877; a=rsa-sha256; cv=none; b=MtiLriuja3aTh/Axjjn3dHNEfbjW5DYAPVi46Io/heVioQ0v2gZbO/D9XqtaZyLfqrq6B3 or8Ss+mwMCjRq/YjHLhVhg0Dq5V9azVPmPbUzO0ZOJeHi4Pm2MqS9wv79bB4uet6RT0IXy DOllhyHDv7QrtrnFTyk2TVL8ZKseHvIQcom2ohNGyQB42YAUzGKmnfrCQOqqAdixxHLNLF eYwqZs2YCe6c8soN9iOLEzT5SIhHuw+5fthLvfDv8GuyUbgGPt7tj1WVRR+hSYpZR5GzdO xpJbjO9oivVgqt3i8oMXDixkxWRw3uh/dXj/zzhppojSPogwD6nETVHpNWpu0Q== X-Spam-Score: 7.58 X-Migadu-Queue-Id: 5540C15033 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=UGeRF7AO; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Spam-Score: 7.58 X-TUID: 889MENh73Tw5 * gnu/packages/python-xyz.scm (python-construct): Update to 2.10.68. [source]: Use git checkout over PyPI to enable tests. [arguments]{tests}: Enable them with custom phase. [native-inputs]: Add python-pytest, python-pytest-benchmark. [propagated-inputs]: Remove python-extras. Add python-cloudpickle, python-lz4. --- gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 445f5a787d..1f13e3ba28 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -94,7 +94,7 @@ ;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2020 EuAndreh ;;; Copyright © 2021, 2022 Morgan Smith -;;; Copyright © 2021, 2022 Sharlatan Hellseher +;;; Copyright © 2021-2023 Sharlatan Hellseher ;;; Copyright © 2021 Ellis Kenyő ;;; Copyright © 2021 LibreMiami ;;; Copyright © 2021 Xinglu Chen @@ -24432,19 +24432,33 @@ (define-public python-attr (define-public python-construct (package (name "python-construct") - (version "2.10.56") + (version "2.10.68") (source (origin - (method url-fetch) - (uri (pypi-uri "construct" version)) + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/construct/construct") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0q86jjzsvy835h3c8pjj4619vbp7ihfg8njmyw86ym4qrpni7flp")))) + (base32 "1b59kq8scxhn9afqgmksk45n53gawylqm8gw3k0vmljg274xi7vf")))) (build-system python-build-system) (arguments - `(#:tests? #f)) ; No tests exist. + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-v" "tests/"))))))) + (native-inputs + (list python-pytest python-pytest-benchmark)) (propagated-inputs - (list python-extras python-arrow python-numpy python-ruamel.yaml)) + (list python-arrow + python-cloudpickle + python-lz4 + python-numpy + python-ruamel.yaml)) (home-page "https://construct.readthedocs.io") (synopsis "Declarative and symmetrical parser and builder for binary data") (description -- 2.39.1