From patchwork Wed Nov 9 19:59:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 44412 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 E42AC27BBEA; Wed, 9 Nov 2022 20:01:40 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1D57E27BBE9 for ; Wed, 9 Nov 2022 20:01:39 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osrG8-0008Qa-68; Wed, 09 Nov 2022 15:01:16 -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 1osrFu-0008Ny-V4 for guix-patches@gnu.org; Wed, 09 Nov 2022 15:01:07 -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 1osrFu-0000P7-GN for guix-patches@gnu.org; Wed, 09 Nov 2022 15:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osrFu-0000lq-5l for guix-patches@gnu.org; Wed, 09 Nov 2022 15:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59156] [PATCH] gnu: python-mdurl: Enable tests Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Nov 2022 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59156 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59156@debbugs.gnu.org Cc: Sharlatan Hellseher X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16680240092887 (code B ref -1); Wed, 09 Nov 2022 20:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Nov 2022 20:00:09 +0000 Received: from localhost ([127.0.0.1]:40981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osrF2-0000kU-Ug for submit@debbugs.gnu.org; Wed, 09 Nov 2022 15:00:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:48242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osrF1-0000kM-M1 for submit@debbugs.gnu.org; Wed, 09 Nov 2022 15:00:07 -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 1osrF1-0008Ez-FW for guix-patches@gnu.org; Wed, 09 Nov 2022 15:00:07 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osrEz-0008UC-Cf for guix-patches@gnu.org; Wed, 09 Nov 2022 15:00:06 -0500 Received: by mail-wr1-x432.google.com with SMTP id k8so27582455wrh.1 for ; Wed, 09 Nov 2022 12:00:04 -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=nCJTQQbbJTLzR97FT3SsNcWPD3d+mkc53vWsJCDVJN4=; b=YsPFbFrtDzo9mYTFM5PIW+4GVIn6e5BoojLIZ2uHgRHXR04I0Bl6vYaa136gGcKNI5 TOZhK5jqzI7MZ+LkHlmpNEAQdjPULJMO7V0CSIz9V17rSMka+BmZBaUT7KZ3JjZqPnHO edVbox96neaEHWyNakiNBRhZwMppA7VFqgT17rLCGVmFeGwURPF06vorv0dUjQbp+JMp A4k1G0NCiA5DaWgC7Mpj/D67psCp+9EavvTUffZ9nKjVvLB4MjzfFKVsBeesOVomERVL FsVh1eeOGhpvSSQB55FEubIzz53GMtWFRvi4kO0uoXiUQ/5o/AiD9eZCzXTJLmpZjMYl i+eA== 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=nCJTQQbbJTLzR97FT3SsNcWPD3d+mkc53vWsJCDVJN4=; b=azczuWbDCcgOOmjyKREzwhSfY79U9KvmOeCyTInaiq8OrlkZM67OfJ3zIgl43fA0Iv lyXcsRlR+pENwLS/dswEI5nshqOyKx3gYxhsLECw93NXcxDz51ukVImYpRsXM6e23JOn X4gOuEKyMn1MrMGs6A3C0aGDRp4LmYE760biSW/9osAt2XqkoRCnf6YE4vBb9rBKSVNb iQJCpdZn1Uuu4v7BfGvF6sQV6JcEfLsxHPQjpOuLxMUeMATD9yXnylNV6T6zXYlhN4YD a9bPFAzQfcgYAQzhR7NflTXvB2HQK4FPUlOziav00WKUD+OY0kF0iJwiX5lAiMGm3q6p Tw6g== X-Gm-Message-State: ACrzQf3f30JXE0AbqMHwgztEGvE9RlCl4oF1nAOviU53kK5a+JKwoZb2 d0//sLUiDvL84d0KSEJG1XPrsQotb4A= X-Google-Smtp-Source: AMsMyM6P/5BmhBNeNNOu3BvUL0ldQqNHQycptfvJeoKlNomjLROu6lpXb3TysHJpDmfhANJyL9UqAQ== X-Received: by 2002:a5d:4d4c:0:b0:238:6aec:878b with SMTP id a12-20020a5d4d4c000000b002386aec878bmr23466548wru.0.1668024003428; Wed, 09 Nov 2022 12:00:03 -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 h13-20020a05600016cd00b002322bff5b3bsm17009126wrf.54.2022.11.09.12.00.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 12:00:02 -0800 (PST) From: Sharlatan Hellseher Date: Wed, 9 Nov 2022 19:59:51 +0000 Message-Id: <20221109195951.30629-1-sharlatanus@gmail.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=sharlatanus@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-mdurl): Enable tests. [source]: Use git checkout with tests. [build-system]: Use pyproject-build-system. [native-inputs]: Add python-pytest. --- gnu/packages/python-xyz.scm | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b2fb101409..9c7874e576 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -783,28 +783,17 @@ (define-public python-mdurl (package (name "python-mdurl") (version "0.1.2") - (source (origin - (method url-fetch) - (uri (pypi-uri "mdurl" version)) - (sha256 - (base32 - "1fn1hy35h9grggwqax90zcb52inlfxrxsm27vlqqz8zfyllkshdv")))) - (build-system python-build-system) - (arguments - (list - #:tests? #f ;pypi source does not contain tests - #:phases - #~(modify-phases %standard-phases - (replace 'build - (lambda _ (invoke "flit" "build"))) - (replace 'install - (lambda _ - (for-each - (lambda (wheel) - (invoke "python" "-m" "pip" "install" - wheel (string-append "--prefix=" #$output))) - (find-files "dist" "\\.whl$"))))))) - (native-inputs (list python-flit)) + (source + (origin + (method git-fetch) ; no tests data in PyPi package + (uri (git-reference + (url "https://github.com/executablebooks/mdurl") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0csc777q42jzv4zgdzxmwp8xqlb92ws1jvj09m2smh4klw67q5f3")))) + (build-system pyproject-build-system) + (native-inputs (list python-flit python-pytest)) (home-page "https://github.com/executablebooks/mdurl") (synopsis "Markdown URL utilities") (description