Subject: [PATCH] gnu: python-fit-nbinom: Remove syntax error in setup.py.
From: Mădălin Ionel Patrașcu<[email-masked]>
To: <[email-masked]>
Date: Mon, 18 Sep 2023 06:35:33 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/python-xyz.scm (python-fit-nbinom)[arguments]: Add
phase remove-invalid-syntax.
---
 gnu/packages/python-xyz.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dd3f987475..59f804128c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -582,6 +582,14 @@ (define-public python-fit-nbinom
                (base32
                 "12v8l5i35vjbpvh5i4lw29ys6vpr3z7pysyrx33hxaq09zr015mx"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-invalid-syntax
+            (lambda _
+              (substitute* "setup.py"
+                ((".\\*\"") "\"")))))))
     (propagated-inputs (list python-numpy python-scipy))
     (home-page "https://github.com/joachimwolff/fit_nbinom")
     (synopsis "Negative binomial maximum likelihood estimator")

base-commit: 1d30ec935126f316187dfc26446347bc7de9868b
-- 
2.41.0