From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OF0iICMHbGPADAAAbAwnHQ (envelope-from ) for ; Wed, 09 Nov 2022 21:01:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +H1HHyMHbGMligAAG6o9tA (envelope-from ) for ; Wed, 09 Nov 2022 21:01:39 +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 298A182F2 for ; Wed, 9 Nov 2022 21:01:39 +0100 (CET) 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 Content-Transfer-Encoding: 8bit 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+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=1668024099; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=nCJTQQbbJTLzR97FT3SsNcWPD3d+mkc53vWsJCDVJN4=; b=XZF6fpnILUzyh6OB5e9StsIhKIxoRmQRF5PRjRfig1paik7nEWDpKlr+JN8GreY/V3NTYE MA1fBadhPshHJsTjPXfW1Zm3jiW8+4nYjobCEQi/Har9LKL4RP6QHB6/O1SbzdO/wJEzCj 1cXr8NvPsHe92LDITqHmLUBEC7aDoSa53DzicC7GRA6N3cWDhFfrp0v5SJKIAgJk2+vzwk NCj0SmkC4/XeDS97l3TEV2d4+PPOT4yJHZ6hoPysFqXgzQGwaXCZAuh2O483o7/QrSSD6M QQG9xO8X0P8FNE1rlWEPaYW5OvpbpeCzNj2fL1js0AC0UHTVnhoxx0Jqx+cq/w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668024099; a=rsa-sha256; cv=none; b=QdU/R9c0FkN5j2lP1aBeKaF78wjBQkuAW3+gUOzeHnibz/AEX7dzgNt50fgg9tbBtRqUNj su9kPgyyFZQwMS2iKHgNXFdq376guIPnfA/Nasi7HngY+w1DDwQyieQ+PE+QvAB6a+Q/gQ WAVOZPAR774faG/0fNTvZVwqCAntYLSi9Gv/1Vn+cIf1ETp0gXu6AMGhn39H8bm1MDBk89 0E2bB3mERUlmRSICR5T/cWq0X3Van+y+jnQAH5/+a9ugf5KeZHyHN29rTVgCgwHiG+djOK HdphxlLVEOXVbKM0UJ8fECTBYtcxFQnf8BjdI3m3npiUzgoYUhhQzGjicn6gVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YsPFbFrt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 7.28 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YsPFbFrt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 298A182F2 X-Spam-Score: 7.28 X-Migadu-Scanner: scn1.migadu.com X-TUID: dvsJ4zSu1fey * 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 -- 2.38.0