From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2KiJItnqx16dagAA0tVLHw (envelope-from ) for ; Fri, 22 May 2020 15:08:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yHCPHtnqx14fCgAAB5/wlQ (envelope-from ) for ; Fri, 22 May 2020 15:08:09 +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 D716D9403ED for ; Fri, 22 May 2020 15:08:08 +0000 (UTC) Received: from localhost ([::1]:42488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc9HL-0004Qx-SZ for larch@yhetil.org; Fri, 22 May 2020 11:08:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc9HG-0004Qp-D7 for guix-patches@gnu.org; Fri, 22 May 2020 11:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jc9HG-0000U7-40 for guix-patches@gnu.org; Fri, 22 May 2020 11:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jc9HF-0004fL-Uh for guix-patches@gnu.org; Fri, 22 May 2020 11:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41459] [PATCH] gnu: Add python-flask-restx Resent-From: Edouard Klein Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 May 2020 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41459 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41459@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159016002717870 (code B ref -1); Fri, 22 May 2020 15:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 May 2020 15:07:07 +0000 Received: from localhost ([127.0.0.1]:60026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jc9GN-0004eA-GF for submit@debbugs.gnu.org; Fri, 22 May 2020 11:07:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:44806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jc9GM-0004e3-GF for submit@debbugs.gnu.org; Fri, 22 May 2020 11:07:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc9GM-0004Oz-Ca for guix-patches@gnu.org; Fri, 22 May 2020 11:07:06 -0400 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jc9GL-0000Pb-45 for guix-patches@gnu.org; Fri, 22 May 2020 11:07:06 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1590160021; cv=none; d=zohomail.com; s=zohoarc; b=XObx0PV0wdZwVJyOFYHf5TfpWvdqEpTIyz8NGLskV7X2yMRd7R4miyHEi06ftIe+0tP1/Zi3Hf4AcXCLb3010TxmDI6Hut4GwGrZx1tE7aYzAkN2zvAgD9/Wld0+rBsg7ul/+QPBCpU67upchqJusfsyJ0BPAgIJyurO2MXH9w0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590160021; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=W31u2OhslB0rypFS8hDS/SdN1gme6GJQcprwwHDXq6E=; b=Uxc29XV1AxLtAa/aitYs4LXTsWKCVmae9Ev3325RKVjTPurzBZ7ySE2HnmOVwoC84AoO/grDRa8BfgCbws5FbEz/FquE6//6mVq16h+AiUEqgY+rb5BuBm94zfsAw+poiEr3HE0CaGawbpXyKWlw56Ve6bFQSKWiGvLw2fbV4vk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=beaver-labs.com; spf=pass smtp.mailfrom=edk@beaver-labs.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590160021; s=zoho; d=beaver-labs.com; i=edk@beaver-labs.com; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; bh=W31u2OhslB0rypFS8hDS/SdN1gme6GJQcprwwHDXq6E=; b=XRs0KHx6EEuTXCSDJhxLP16mg/0+lEHECZAl8iCJGYW0msGwdY1mA5dBDtmKhZfW o0Ay/EnYyi1obk0z247uBOCroSFSOakqjEERrHgZ//4pSE3Vx1Axg6HlmNeLUOK2EmW XPgyVVZVb2RSGPyZfVSPBjhhNuTwa1HiChzFVruQ= Received: from alice.lan (lfbn-idf1-1-1299-119.w90-79.abo.wanadoo.fr [90.79.23.119]) by mx.zohomail.com with SMTPS id 1590160019554511.87243971265775; Fri, 22 May 2020 08:06:59 -0700 (PDT) User-agent: mu4e 1.4.6; emacs 26.3 From: Edouard Klein Message-ID: <87a720au0g.fsf@alice.lan> Date: Fri, 22 May 2020 17:06:55 +0200 MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.11; envelope-from=edk@beaver-labs.com; helo=sender4-op-o11.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 09:10:19 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.4 (--) 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=beaver-labs.com header.s=zoho header.b=XRs0KHx6; 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: 1.99 X-TUID: Qyv/+H82Cbhf * 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. --- gnu/packages/python-check.scm | 49 +++++++++++++++++++++++++++++++++++ gnu/packages/python-web.scm | 49 +++++++++++++++++++++++++++++++++++ gnu/packages/python-xyz.scm | 20 ++++++++++++++ 3 files changed, 118 insertions(+) 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))) +(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))) + (home-page "https://github.com/ionelmc/pytest-benchmark") + (synopsis + "Pytest fixture for benchmarking code") + (description + "This pytest fixture will group the tests into rounds that are calibrated to +the chosen timer.") + (license license:bsd-2))) + +(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") + (description + "This pytest plugin provides some fixtures to simplify app testing.") + (license license:expat))) + (define-public python-codacy-coverage (package (name "python-codacy-coverage") diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 00caf7f229..c1658052d8 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4024,3 +4024,52 @@ request/response web apps to larger, grown applications.") than 326,000 known user-agents. Users can pick a random one, or select one based on filters.") (license license:expat))) + +(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") + (synopsis + "Framework for fast, easy and documented API development with Flask") + (description + "Flask-RESTX is an extension for Flask that adds support for quickly building +REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar + with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of +decorators and tools to describe your API and expose its documentation properly using +Swagger.") + (license license:bsd-3))) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1b32e7e2a8..d8552276fc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -20076,6 +20076,26 @@ It builds upon tmux's target and formats to create an object mapping to traverse using multi-select lists, confirmations, free text prompts, completion, etc.") (license license:expat))) +(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") + (synopsis "Get CPU info with pure Python 2 & 3") + (description + "This module returns the CPU info by using the best sources of information for + your OS.") + (license license:expat))) + (define-public python-daemux (package (name "python-daemux") -- 2.26.2