From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0Cs7CqhM0l71OgAA0tVLHw (envelope-from ) for ; Sat, 30 May 2020 12:08:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +NoSBqhM0l7LHgAA1q6Kng (envelope-from ) for ; Sat, 30 May 2020 12:08:08 +0000 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 84C449403E9 for ; Sat, 30 May 2020 12:08:07 +0000 (UTC) Received: from localhost ([::1]:35880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jf0HW-0000sG-GQ for larch@yhetil.org; Sat, 30 May 2020 08:08:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf0HS-0000qj-Qs for guix-patches@gnu.org; Sat, 30 May 2020 08:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jf0HS-00006u-G5 for guix-patches@gnu.org; Sat, 30 May 2020 08:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jf0HS-0007pP-2w for guix-patches@gnu.org; Sat, 30 May 2020 08:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41455] [PATCH 1/2] gnu: Add python-pytest-4 Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 May 2020 12:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41455 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Edouard Klein , 41455@debbugs.gnu.org Received: via spool by 41455-submit@debbugs.gnu.org id=B41455.159084043730032 (code B ref 41455); Sat, 30 May 2020 12:08:02 +0000 Received: (at 41455) by debbugs.gnu.org; 30 May 2020 12:07:17 +0000 Received: from localhost ([127.0.0.1]:57048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jf0Gi-0007oK-Op for submit@debbugs.gnu.org; Sat, 30 May 2020 08:07:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jf0Gh-0007o4-AF for 41455@debbugs.gnu.org; Sat, 30 May 2020 08:07:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33410) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jf0Gb-0007aZ-Vx; Sat, 30 May 2020 08:07:10 -0400 Received: from ti0006q161-2604.bb.online.no ([84.202.68.75]:57322 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jf0Gb-0004MV-CP; Sat, 30 May 2020 08:07:09 -0400 From: Marius Bakke In-Reply-To: <87imgjyuir.fsf@alice.lan> References: <87d06wazez.fsf@alice.lan> <87imgjyuir.fsf@alice.lan> Date: Sat, 30 May 2020 14:07:07 +0200 Message-ID: <87a71p39uc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.61 X-TUID: F+k7DLB0gLbw --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Edouard Klein writes: > * gnu/packages/check.scm (python-pytest-4): New variable. [...] =20=20 > +(define-public python-pytest-4 > + (package > + (name "python-pytest-4") > + (version "4.5.0") > + (source > + (origin > + (method git-fetch) > + ;; Pypi source tarball does not include tests > + (uri (git-reference > + (url "https://github.com/pytest-dev/pytest.git") > + (commit version))) > + (file-name "python-pytest-4") > + (sha256 > + (base32 > + "0igxfasjqabkzlb81vxqr58pfsdwjx4zzd1nc1b48wn6xnkkllhk")))) > + (build-system python-build-system) > + (propagated-inputs > + `(("python-atomicwrites" ,python-atomicwrites) > + ("python-attrs" ,python-attrs) > + ("python-attrs" ,python-attrs) > + ("python-more-itertools" ,python-more-itertools) > + ("python-pluggy" ,python-pluggy) > + ("python-six" ,python-six) > + ("python-py" ,python-py) > + ("python-wcwidth" ,python-wcwidth))) > + (native-inputs > + `(("python-setuptools-scm" ,python-setuptools-scm) > + ("git" ,git))) > + (arguments `(#:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'git-tag > + (lambda _ > + ;; setuptools-scm needs to know the version > + (invoke "git" "init") > + (invoke "git" "add" ".") > + (invoke "git" "config" "user.name" "John Doe") > + (invoke "git" "config" "user.email" "nobody@examp= le.com") > + (invoke "git" "commit" "-m" "dummy commit") > + (invoke "git" "tag" ,version)))))) > + (home-page "https://docs.pytest.org/en/latest/") > + (synopsis "Python testing library") > + (description > + "Pytest is a testing tool that provides auto-discovery of test modu= les > +and functions, detailed info on failing assert statements, modular fixtu= res, > +and many external plugins.") > + (license license:expat))) Can you make this inherit from pytest instead of duplicating all the fields? Also, we should find a way to get rid of the git dependency. Weird that other versions of Pytest don't have this requirement. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7STGsACgkQoqBt8qM6 VPpluQf/Q07thY3DZY+Ieb8Lj4zNSLI99uNTu9OKljkPnLpDWfVMmetbvz68FEVC jAES8fZoCwLDU78bXjxrkenCn+3yuDbfdhWlchFputAQd3rHh6tEetlmV+PL2mmV no0WEA8IVT2njmcqO/7ijrZ6GAMsQxE3X2QXMMi1ndjaJVzAfbWJF83Se0x4OshN +YUp7k2cvstmEX00TfnONGphRXE5SFXA09SromoiPWDv00jhDuZQ2FdysKQYCJKJ 0mwZ/PUpMGDnUJzOE42KRYvKWlmgD48WQIlH9+3++FfcyDJX4lN+9Kq+6kH0jcSn CFT7LhXAJu6Npgt4oNWWP++djeHy5w== =FN+e -----END PGP SIGNATURE----- --=-=-=--