From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qFA0Hppb0l6UcwAA0tVLHw (envelope-from ) for ; Sat, 30 May 2020 13:11:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KG/+GZpb0l5MPAAAbx9fmQ (envelope-from ) for ; Sat, 30 May 2020 13:11:54 +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 0432F940308 for ; Sat, 30 May 2020 13:11:54 +0000 (UTC) Received: from localhost ([::1]:41058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jf1HF-0005rT-0b for larch@yhetil.org; Sat, 30 May 2020 09:11:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf1Ac-0003IZ-Sf for guix-patches@gnu.org; Sat, 30 May 2020 09:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jf1Ac-000668-HB for guix-patches@gnu.org; Sat, 30 May 2020 09:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jf1Ac-0000mu-Bg for guix-patches@gnu.org; Sat, 30 May 2020 09:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41459] [PATCH] gnu: Add python-flask-restx Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 May 2020 13:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41459 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Edouard Klein , 41459@debbugs.gnu.org Received: via spool by 41459-submit@debbugs.gnu.org id=B41459.15908438722990 (code B ref 41459); Sat, 30 May 2020 13:05:02 +0000 Received: (at 41459) by debbugs.gnu.org; 30 May 2020 13:04:32 +0000 Received: from localhost ([127.0.0.1]:57138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jf1A8-0000m8-Ch for submit@debbugs.gnu.org; Sat, 30 May 2020 09:04:32 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jf1A6-0000lw-IC for 41459@debbugs.gnu.org; Sat, 30 May 2020 09:04:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4CAF05C006B; Sat, 30 May 2020 09:04:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 30 May 2020 09:04:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=pjHT0brhwpoSEVkyShhOrb5yyu ZNYFY5NVkcyHoJgT8=; b=EFnIbc9yOe6EmOQNNbnQa3k7UQ8NcE/FiVkWNpnJjj jQ7zEtT3+LXJNoXV/nHGY2sXOTbnBk1QE2k7MsBaQ02IiANke7JG1Zpo5fRAuKF8 F7jT+gu+oT38HCxte0Sq7902c2pAO0vMVFFEXOKh0lww0VA9TaKjKbD+u9O4zP1s HUW1iMEER3THQu57YlBNU+FhmEWgtzy3dWHTSqDd+uqXoXkW1K7S5LEih+wJQ+mV 65XbpK5rbQHhgx3FErFPVo9LMzsdGT3Kx1ESQEHCq6ecjiaOddLiBSxEah1of/9D Is4/6jbISEHnMjQO16O0mAVq8mLCzJfT541FRKR/llow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=pjHT0b rhwpoSEVkyShhOrb5yyuZNYFY5NVkcyHoJgT8=; b=RdL2GpKlByAiYD6Y6t9r69 XnLgCEyToVUf8xKtmftiWY8UO/+E6NLs+H31sgY74bt0jgZb+qXpv+ESyef6cv5J zwWkeSiW937sNQejY6bGOAJsfGVVXIvpwQSmbgbyN9jBxfUSQYC3Gs0LsLh2shW5 OPv/IXS4Fifb5my2KELR+xvhVe/qBS8p/M0DZvvZVVHkthnhZ+VisHBWLdtKUYWD bZkgs+oZPGw/8g8ktyP83HMkTSqelwlZqwVXRKA9ixib1ljoTzzZZfZiQ3NkOe3/ 2UFLOE/WF9kZl9+JWQcWb0KeKuJnm2Tv0HVomsKWh6cs6sBlg+CmG+Rp3g//FFoA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeftddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgesghdtreertddttdenucfhrhhomhepofgrrhhiuhhs uceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecuggftrfgrth htvghrnhepueevvdeugefghfekfffgjeefgfdvieevvdetudeuhffgkeeiueejgeejuddt iedunecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepkeegrddvtddvrdeike drjeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhgsrghkkhgvsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id B12F03060F09; Sat, 30 May 2020 09:04:24 -0400 (EDT) From: Marius Bakke In-Reply-To: <87a720au0g.fsf@alice.lan> References: <87a720au0g.fsf@alice.lan> Date: Sat, 30 May 2020 15:04:23 +0200 Message-ID: <87mu5p1smg.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-Mailman-Approved-At: Sat, 30 May 2020 09:11:36 -0400 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=fail (rsa verify failed) header.d=fastmail.com header.s=fm3 header.b=EFnIbc9y; dkim=fail (rsa verify failed) header.d=messagingengine.com header.s=fm2 header.b=RdL2GpKl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=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.49 X-TUID: CVJW28qZeiVQ --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Edouard Klein writes: > * gnu/packages/python-web.scm (python-flask-restx): New variable. > * gnu/packages/python-check.scm (python-pytest-benchmark): New variable. > * gnu/packages/python-check.scm (python-pytest-flask): New variable. > * gnu/packages/python-xyz.scm (python-py-cpuinfo): New variable. Can you split this into four different patches? Please also fix the indentation on each package. > diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm > index 50911673b2..70db8445ee 100644 > --- a/gnu/packages/python-check.scm > +++ b/gnu/packages/python-check.scm > @@ -362,6 +362,55 @@ framework.") > framework.") > (license license:expat))) >=20=20 > +(define-public python-pytest-benchmark > + (package > + (name "python-pytest-benchmark") > + (version "3.2.3") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "pytest-benchmark" version)) > + (sha256 > + (base32 > + "0a4mpb4j73dsyk47hd1prrjpfk4r458s102cn80rf253jg818hxd")))) > + (build-system python-build-system) > + (native-inputs > + `(("python-pathlib2" ,python-pathlib2) > + ("python-py-cpuinfo" ,python-py-cpuinfo) > + ("python-pytest" ,python-pytest))) py-cpuinfo should probably be propagated according to setup.py. > + (home-page "https://github.com/ionelmc/pytest-benchmark") > + (synopsis > + "Pytest fixture for benchmarking code") This line break is unnecessary. [...] > +(define-public python-pytest-flask > + (package > + (name "python-pytest-flask") > + (version "1.0.0") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "pytest-flask" version)) > + (sha256 > + (base32 > + "1hln7mwgdzfi5ma0kqfsi768l7p24jhkw8l0imhifwy08nh7hmjd")))) > + (build-system python-build-system) > + (native-inputs > + `(("python-flask" ,python-flask) > + ("python-pytest" ,python-pytest) > + ("python-setuptools-scm" ,python-setuptools-scm) > + ("python-werkzeug" ,python-werkzeug))) > + (home-page > + "https://github.com/pytest-dev/pytest-flask") > + (synopsis > + "Pytest fixtures to test Flask applications") These line breaks are unncessary. > +(define-public python-flask-restx > + (package > + (name "python-flask-restx") > + (version "0.2.0") > + (source > + ;; We fetch from the Git repo because there are no tests in the PyPI > + ;; archive. > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/python-restx/flask-restx") > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7")))) > + (build-system python-build-system) > + (propagated-inputs > + `(("python-aniso8601" ,python-aniso8601) > + ("python-flask" ,python-flask) > + ("python-jsonschema" ,python-jsonschema) > + ("python-pytz" ,python-pytz))) > + (native-inputs > + `(("python-blinker" ,python-blinker) > + ("python-faker" ,python-faker) > + ("python-pytest" ,python-pytest) > + ("python-pytest-benchmark" > + ,python-pytest-benchmark) > + ("python-pytest-flask" ,python-pytest-flask) > + ("python-pytest-mock" ,python-pytest-mock))) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (replace 'check > + (lambda _ > + (invoke "pytest" "--benchmark-skip" "-k" > + ;; Those tests need internet access > + "not test_check and not test_valid_value_check")))))) > + (home-page > + "https://github.com/python-restx/flask-restx") This line break is unnecessary. > +(define-public python-py-cpuinfo > + (package > + (name "python-py-cpuinfo") > + (version "5.0.0") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "py-cpuinfo" version)) > + (sha256 > + (base32 > + "0045y6832gqjg63jmw0qj2jwyypgjwr7sfdq3lfv49b6fxpl5xic")))) > + (build-system python-build-system) > + (home-page > + "https://github.com/workhorsy/py-cpuinfo") This line break is unnecessary. > + (synopsis "Get CPU info with pure Python 2 & 3") Maybe just "Get CPU info with Python" > + (description > + "This module returns the CPU info by using the best sources of infor= mation for > + your OS.") s/OS/operating system/ Can you send updated patches? Please also make sure they are in the correct order, i.e. this last package must come before 'python-pytest-benchmark'. Thanks in advance! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7SWdcACgkQoqBt8qM6 VPpOUwf+OnayXWnOq+2/NKkocRHaML9VNQH9JCwbbO+bFkdihL6UBYx2yu+X7kID qrIxGG+Ki2FjhhBsOvGpVlfeCPQXlCUQ06tS4+oStkA2rrKBZdT85O2DRoPnBHL3 2fuY05xNW8/a39EypOpF9xycQ35gBwN+bHhACUP8xzlUENo2ug76PCa8jcUZfT4d 9Zh/HxTkld5MxRsssnS0K4QdEowsDdAzEEzj8w/pGVKD4NBXTuQRLc3UCrhxb76e 10STPvEwF22RDyAkkALUnmgR5gKmWZsnk7QnWjHLGuxYa82bJq3B3u1o4su9+FVe bCIE0zDvWBbs0neAYk1htweKlX0vOQ== =F/a1 -----END PGP SIGNATURE----- --=-=-=--