Package Details: python-lmfit 1.3.2-1

Git Clone URL: https://aur.archlinux.org/python-lmfit.git (read-only, click to copy)
Package Base: python-lmfit
Description: Non-Linear Least Squares Minimization, based on scipy.optimize
Upstream URL: http:/lmfit.github.io/lmfit-py/
Licenses: BSD-3-Clause
Submitter: Francois_B
Maintainer: greyltc
Last Packager: greyltc
Votes: 9
Popularity: 0.000000
First Submitted: 2012-07-01 18:02 (UTC)
Last Updated: 2024-09-14 11:37 (UTC)

Latest Comments

1 2 Next › Last »

iyanmv commented on 2024-07-08 21:27 (UTC)

Here is a diff with a few more suggested changes:

  • package should be any, not x86_64
  • missing python-setuptools-scm as mentioned in previous comment
  • python-pytest should be in checkdepends array
  • delete duplicate makedepends array
  • install LICENSE file
diff --git a/PKGBUILD b/PKGBUILD
index 9c39251..ff31f3f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,14 @@
 pkgname=python-lmfit
 pkgver=1.3.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Non-Linear Least Squares Minimization, with flexible Parameter settings, based on scipy.optimize.leastsq, and with many additional classes and methods for curve fitting"
-arch=(x86_64)
+arch=(any)
 url=http:/lmfit.github.io/lmfit-py/
 license=('BSD-3-Clause')
 makedepends=(
 python-build
 python-installer
+python-setuptools-scm
 python-wheel
 )
 depends=(
@@ -18,16 +19,11 @@ ipython
 python-matplotlib
 python-numpy
 python-pandas
-python-pytest
 python-scipy
 python-uncertainties
 )
-makedepends=(
-python-build
-python-installer
-python-wheel
-)
 checkdepends=(
+python-pytest
 python-pytest-cov
 python-flaky
 python-coverage
@@ -54,6 +50,7 @@ check() {
 package() {
   cd lmfit-py-${pkgver}
   python -m installer --destdir="${pkgdir}" dist/*.whl
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }

 # vim:ts=2:sw=2:et:

Optionally, you could include the current patches to fix some of the issues with NumPy 2.0, although I think they are not finish yet.

iyanmv commented on 2024-07-08 21:12 (UTC)

Also, you have duplicated the makedepends array, so delete the first one, or be sure to include the missing dependencies in the second array, or it will still fail to build.

iyanmv commented on 2024-07-08 21:10 (UTC)

Last PKGBUILD fails to build. This is probably because python-setuptools and python-setuptools-scm are missing in makedepends.

==> Starting build()...
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

ERROR Backend 'setuptools.build_meta' is not available.

jrohwer commented on 2024-04-24 09:32 (UTC)

Is this maintained? The last update was in Aug 2023 and the current version is 1.3.1 whereas this one still sits at 1.2.2

tocic commented on 2022-12-03 09:45 (UTC)

Please fix the upstream URL to https://lmfit.github.io/lmfit-py/.

chavdar commented on 2019-10-13 17:41 (UTC)

The correct SHA for lmfit-py-0.9.14.tar.gz is 1d71b748aa5a0cfbeef7d6829a59c8a2c24d9240ed36f9f25574793ac5225fae

andalenavals commented on 2019-03-14 20:20 (UTC)

This PKGBUILD was not checked in a clean chroot. Please at least add makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')

Stendec commented on 2018-08-21 17:16 (UTC)

since 0.9.10 python-uncertainties>=3.0 is required to run lmfit. Thanks!

Stendec commented on 2018-02-13 17:45 (UTC)

Could you please update to the latest version (currently 0.9.6)? I had success on my machine by simply changing the version in PKGBUILD and updating the pkgsums, but it would be nice if the package itself was already correct. Thanks!

Francois_B commented on 2012-11-15 07:52 (UTC)

Added in makedepends, thx.