From patchwork Wed Nov 3 20:16:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34233 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1DA0D27BBE3; Wed, 3 Nov 2021 20:18:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AEF6D27BBE1 for ; Wed, 3 Nov 2021 20:18:26 +0000 (GMT) Received: from localhost ([::1]:55704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miMiG-0004iz-LU for patchwork@mira.cbaines.net; Wed, 03 Nov 2021 16:18:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miMhu-0004iJ-7S for guix-patches@gnu.org; Wed, 03 Nov 2021 16:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58048) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miMht-0006d3-V0 for guix-patches@gnu.org; Wed, 03 Nov 2021 16:18:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1miMht-0006n0-N7 for guix-patches@gnu.org; Wed, 03 Nov 2021 16:18:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#46005] [PATCH v2] gnu: Add python-lmso-algorithm. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Nov 2021 20:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46005 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "46005@debbugs.gnu.org" <46005@debbugs.gnu.org> Received: via spool by 46005-submit@debbugs.gnu.org id=B46005.163597062426014 (code B ref 46005); Wed, 03 Nov 2021 20:18:01 +0000 Received: (at 46005) by debbugs.gnu.org; 3 Nov 2021 20:17:04 +0000 Received: from localhost ([127.0.0.1]:41358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miMgt-0006l1-Ox for submit@debbugs.gnu.org; Wed, 03 Nov 2021 16:17:04 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:64913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miMgo-0006kd-34 for 46005@debbugs.gnu.org; Wed, 03 Nov 2021 16:16:58 -0400 Date: Wed, 03 Nov 2021 20:16:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1635970607; bh=UCPTEUGVjkD/tIVakZIi0pYZ1vKKF4tJ1w4c5AksjkM=; h=Date:To:From:Reply-To:Subject:From; b=m54q3he3+SFun7+9DjKlMcOEvFergtzNAbQVlnWE3x0XoyEJ4IRCfH1+SUmlvuKR1 yYJtmFnBM/ApyDaD4NLrJWS+jKkWtdM6vdrMDxkKvhO7hL5SRCoeYeIVRP8z111JKx d1VkxpDh0sXVY7aNnbwkzuZHpJcbEyQhGFOGTsas= Message-ID: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Hi Adam, here's the reworked patch. Petr --8<---------------cut here---------------start------------->8--- * gnu/packages/python-xyz.scm (python-lmso-algorithm): New variable. --- 2.33.1 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 32d6b403d4..1d70cd6f2f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13440,6 +13440,39 @@ (define-public python-lmfit enhancements to optimization and data fitting problems.") (license license:bsd-3))) +(define-public python-lmso-algorithm + (let ((commit "463699946d1805c6898ae9789370b1e8a122ccda") + (revision "1")) + (package + (name "python-lmso-algorithm") + (version (git-version "1.2" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/alexgrusu/lmso_algorithm") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 "122kyd1m0l1x79x0sp201bgbg7sb36c2dz7cranbf8g6m69f4w68"))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'build 'delete-egg + (lambda* (#:key outputs #:allow-other-keys) + ;; Delete the .egg-info directory, to avoid build errors + (delete-file-recursively "lmso_algorithm.egg-info")))))) + (propagated-inputs + `(("python-numpy" ,python-numpy) + ("python-scipy" ,python-scipy ))) + (home-page "https://github.com/alexgrusu/lmso_algorithm") + (synopsis "Optimized LMS algorithm") + (description "This package provides an optimized least-mean-square (LMSO) +algorithm. The proposed algorithm follows an optimization problem and +introduces a variable step-size in order to minimize the system +misalignment.") + (license license:gpl3)))) + (define-public python-boto (package (name "python-boto")