From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 YM7ZKZtKcGIkeQAAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 23:18:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ANnFKZtKcGL7BAAAauVa8A (envelope-from ) for ; Mon, 02 May 2022 23:18:19 +0200 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 77ABC29333 for ; Mon, 2 May 2022 23:18:19 +0200 (CEST) Received: from localhost ([::1]:35804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldQw-0005sV-Iw for larch@yhetil.org; Mon, 02 May 2022 17:18:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldQh-0005Pe-Uz for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldQh-0008Ng-ME for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldQh-0006RB-Ha for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 5/8] gnu: Add python-pyperf. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55060 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55060@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 55060-submit@debbugs.gnu.org id=B55060.165152624924645 (code B ref 55060); Mon, 02 May 2022 21:18:03 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:29 +0000 Received: from localhost ([127.0.0.1]:38169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQ9-0006PQ-CQ for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:29 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:24903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQ7-0006P2-GS for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:17:27 -0400 Date: Mon, 02 May 2022 21:17:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526241; bh=C9waFKVFCvvXbkzK3Puo8TtTTQk7sRfM6sZU7+LIPWc=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=AQNxPRrK5bpyttT1l3/25tF5fsZTQnAT1pdjz0uB3SpE4qIAAHcnKTbEX6UyRN8MP sD+UU1FFBLhkVL1tG6k67d05idMJxHP0vKIuIEUhVuwvKRDokT4Io0Ok038pmjyKT6 6C+KdJsfbp2XtpeL19RE5RnfnulP428UPzhuFhHbXZXbbEKzQllvgii8ja4jjHxblZ u/D+eyqWAa5Ml6Ee+T3hN5RTEii/+nkLQwjW2PFD6d2zn+Ar91U9koxcJViv7DWR5Z Hsq/kpbjrNea4rLs5tH3wsEC5IJahEGrMlSaKD2m5Jy0PfU2avfyPi7XnHPMB8LVae PrbcBxPLQY/kA== From: "Paul A. Patience" Message-ID: <20220502211624.689372-6-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651526299; h=from:from:sender:sender:reply-to: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=C9waFKVFCvvXbkzK3Puo8TtTTQk7sRfM6sZU7+LIPWc=; b=SOH4exqEiCU96B0+EoiYhfOX4dG6d8j450fQ7qKogBrqLlRjrDMJNxenf7XgbqErKcnEJX NuTv4cdWUPIImQDr+txNM1funt6GwWGoe077E4P5H68b36tnL+0Kw+52LcpzIbh81t4dB/ FB6MW4eH6Pauy7C5JFPIoFWByRPID4GwQPJKWyLzFZMrqeOkwr0UdwTYkBwjVtLacRJEVk bLa1Yw2yGSwvkNsRul7tQmUMojpImvDIG8tlXzJa30TGy1FDnqeb0ZEVL/KCTNCtyBacqP hMnpceo+pMkqioNHpD98WS09oYdiYgIXM8FiAjzCMfp0ETqfE+6QuFmoEc5XQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651526299; a=rsa-sha256; cv=none; b=f4/D/RCs0uK84FsOH7PKM0suuHpkT2ohuQB3PW+sNGI2wC26hD8hlglC4StG7stACzcrav +hhVBSXAtivNaeFp0YDCmRIFgdQp++5voWZMKrJRg6nyJGDfbu1WqhQSYgKZnJED/lxnwG mFPYihI54QWRJfsxXIPmyyf2iIeFRk+u21Oo4DRSDTPIl5bUFkqqXqg50cUfAIU29B8EX4 eHzEqEqBJlAafR8L2tfCOMTAymxDNA9/DZ0peKuBGfMxsPSeFHy6Xnjzt66Up4EHhCp0a5 Ulb5b60Nnij7ljsUUVip8ZbYGrbMJFyyQi40+FOXfLWUNBgAp360k8/aqfusQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=AQNxPRrK; dmarc=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: 3.52 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=AQNxPRrK; dmarc=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: 77ABC29333 X-Spam-Score: 3.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: zAbJyWsL5by2 * gnu/packages/python-xyz.scm (python-pyperf): New variable. --- gnu/packages/python-xyz.scm | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9a5d311680..84f8b991e5 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29534,3 +29534,50 @@ (define-public python-sre-yield uses the parsed regular expression, so you get a much more accurate result than trying to just split strings.") (license license:asl2.0))) + +(define-public python-pyperf + (package + (name "python-pyperf") + (version "2.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyperf" version)) + (sha256 + (base32 "189qf9wdbig0fk4n3bavx8acgdbay5lllfvw48jvbfaafb7y5hja")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda _ + ;; Some of these tests fail with: + ;; + ;; ModuleNotFoundError: No module named 'pyperf' + ;; + ;; even when calling =E2=80=98add-installed-pythonpath= =E2=80=99 in the =E2=80=98check=E2=80=99 + ;; phase. + (delete-file "pyperf/tests/test_examples.py"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; From tox.ini's =E2=80=98testenv.commands=E2=80=99. + (invoke "python" "-bb" "-Wd" + "-m" "unittest" "discover" + "-s" "pyperf/tests/" "-v"))))))) + (native-inputs + (list python-psutil)) + (home-page "https://github.com/psf/pyperf") + (synopsis "Toolkit for running Python benchmarks") + (description "The Python @code{pyperf} module is a toolkit for writing= , +running and analyzing benchmarks. It features a simple API that can: + +@itemize +@item automatically calibrate a benchmark for a time budget; +@item spawn multiple worker processes; +@item compute the mean and standard deviation; +@item detect if a benchmark result seems unstable; +@item store benchmark results in JSON format; +@item support multiple units: seconds, bytes and integer. +@end itemize") + (license license:expat))) -- 2.36.0