From 5f93aa182a32e4baecc6238c21d2538af0b18ad3 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Sat, 4 Nov 2023 15:05:56 +0000 Subject: gnu: Add python-pyamg. * gnu/packages/python-science.scm (python-pyamg): New variable. Change-Id: Ibf39fecd14d4e6fd72078b217737e5e5cbbf2321 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-science.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 3422302a87..ed3a19f1b3 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -457,6 +457,41 @@ (define-public python-meshzoo spheres, cubes, etc.") (license license:gpl3+))) +(define-public python-pyamg + (package + (name "python-pyamg") + (version "5.0.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "pyamg" version)) + (sha256 + (base32 + "0l3dliwynxyjvbgpmi2k8jqvkkw6fc00c8w69h6swhrkfh0ql12z")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; Test installed package in order to find C++ modules. + #~(list "--pyargs" "pyamg.tests"))) + (native-inputs (list pybind11 python-pytest python-setuptools-scm)) + (propagated-inputs (list python-numpy python-scipy)) + (home-page "https://github.com/pyamg/pyamg") + (synopsis "Algebraic Multigrid Solvers in Python") + (description "PyAMG is a Python library of Algebraic Multigrid +(AMG) solvers. + +PyAMG features implementations of: +@itemize +@item Ruge-Stuben (RS) or Classical AMG +@item AMG based on Smoothed Aggregation (SA) +@item Adaptive Smoothed Aggregation (αSA) +@item Compatible Relaxation (CR) +@item Krylov methods such as CG, GMRES, FGMRES, BiCGStab, MINRES, etc. +@end itemize +PyAMG is primarily written in Python with supporting C++ code for +performance critical operations.") + (license license:expat))) + (define-public python-tspex (package (name "python-tspex") -- cgit v1.2.3 From b9e74d092df2948dd94f6f550a3d8dd0dea7ad45 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 21 Jan 2024 17:39:35 +0000 Subject: gnu: python-scikit-fem: Update to 9.0.1. * gnu/packages/python-science.scm (python-scikit-fem): Update to 9.0.1. [arguments]<#:test-flags>: Drop it to activate all tests. [native-inputs]: Add python-autograd, python-pyamg, and python-shapely. Change-Id: Ic4706196026bd5756b4db8230b15efacdca7d463 --- gnu/packages/python-science.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index ed3a19f1b3..c1be6cde23 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -213,7 +213,7 @@ (define-public python-scikit-allel (define-public python-scikit-fem (package (name "python-scikit-fem") - (version "8.1.0") + (version "9.0.1") (source (origin (method git-fetch) ; no tests in PyPI (uri (git-reference @@ -222,13 +222,14 @@ (define-public python-scikit-fem (file-name (git-file-name name version)) (sha256 (base32 - "1zpn0wpsvls5nkrav5a43z77yg9nc09dpyy9ri0dpmpm2ndh2mhs")))) + "1r1c88rbaa7vjfnljbzx8paf36yzpy33bragl99ykn6i2srmjrd4")))) (build-system pyproject-build-system) - (arguments - ;; Examples below require python-autograd and python-pyamg. - (list #:test-flags #~(list "-k" "not TestEx32 and not TestEx45"))) (propagated-inputs (list python-meshio python-numpy python-scipy)) - (native-inputs (list python-pytest)) + (native-inputs + (list python-autograd + python-pyamg + python-pytest + python-shapely)) (home-page "https://scikit-fem.readthedocs.io/en/latest/") (synopsis "Library for performing finite element assembly") (description -- cgit v1.2.3 From 6f6cfb8365e3ef44de5b9f022331c31d84778dea Mon Sep 17 00:00:00 2001 From: Troy Figiel Date: Wed, 17 Jan 2024 19:49:46 +0100 Subject: gnu: python-tdda: Remove relax-requirements phase. * gnu/packages/python-science.scm (python-tdda)[arguments]<#:phases>: Remove relax-requirements phase. Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-science.scm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index c1be6cde23..ef65ed537a 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -22,7 +22,7 @@ ;;; Copyright © 2022 Eric Bavier ;;; Copyright © 2022 Antero Mejr ;;; Copyright © 2022 jgart -;;; Copyright © 2023 Troy Figiel +;;; Copyright © 2023, 2024 Troy Figiel ;;; ;;; This file is part of GNU Guix. ;;; @@ -376,11 +376,6 @@ (define-public python-tdda (build-system pyproject-build-system) (arguments '(#:phases (modify-phases %standard-phases - (add-after 'unpack 'relax-requirements - (lambda _ - (substitute* "setup.py" - (("pandas>=1.5.2") - "pandas")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? -- cgit v1.2.3 From 994817bfdccc715dccfa96366fc286a80171a7e6 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 23 Jan 2024 11:13:40 +0100 Subject: gnu: python-scipy: Update to 1.12.0. * gnu/packages/python-science.scm (python-scipy): Update to 1.12.0. [propagated-inputs]: Add python-jupytext, python-mpmath, python-mypy, python-numpydoc, python-pydata-sphinx-theme, python-pydevtool, python-rich-click, python-sphinx, python-threadpoolctl, and python-typing-extensions; remove python-pyparsing. [native-inputs]: Add python-hypothesis, python-pycodestyle, python-pytest-cov, and python-pytest-xdist; remove python-threadpoolctl. Change-Id: I81a4831e3d94c58416f7d35ec47de90370b88210 --- gnu/packages/python-science.scm | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index ef65ed537a..1f00ad880b 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -84,13 +84,13 @@ (define-module (gnu packages python-science) (define-public python-scipy (package (name "python-scipy") - (version "1.11.4") + (version "1.12.0") (source (origin (method url-fetch) (uri (pypi-uri "scipy" version)) (sha256 - (base32 "1amfxpnni0cagwjpb0i1kdgnh4sh484ryn4gfkgbjcspgy7bg8lh")))) + (base32 "18rn15wg3lp58z204fbjjhy0h79c53yg3c4qqs9h3liniamspxab")))) (build-system pyproject-build-system) (arguments (list @@ -135,7 +135,19 @@ (define-public python-scipy (copy-recursively "build/html" html))) (format #t "sphinx-build not found, skipping~%")))))))) (propagated-inputs - (list python-numpy python-matplotlib python-pyparsing python-pythran)) + (list python-jupytext + python-matplotlib + python-mpmath + python-mypy + python-numpy + python-numpydoc + python-pydata-sphinx-theme + python-pydevtool + python-pythran + python-rich-click + python-sphinx + python-threadpoolctl + python-typing-extensions)) (inputs (list openblas pybind11-2.10)) (native-inputs (list gfortran @@ -147,11 +159,14 @@ (define-public python-scipy python-click python-cython-0.29.35 python-doit + python-hypothesis python-pooch + python-pycodestyle python-pydevtool python-pytest - python-pytest-xdist - python-threadpoolctl)) + python-pytest-cov + python-pytest-timeout + python-pytest-xdist)) (home-page "https://scipy.org/") (synopsis "The Scipy library provides efficient numerical routines") (description "The SciPy library is one of the core packages that make up -- cgit v1.2.3 From e71abbc6438f2b25f0d41221fadf695dfe094689 Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Sat, 3 Dec 2022 05:03:57 +0000 Subject: gnu: Add python-pynetdicom. * gnu/packages/python-science.scm (python-pynetdicom): New variable. Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-science.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 1f00ad880b..44d0157665 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2390,6 +2390,47 @@ (define-public python-pylems NeuroML2 models.") (license license:lgpl3))) +(define-public python-pynetdicom + (package + (name "python-pynetdicom") + (version "2.0.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "pynetdicom" version)) + (sha256 + (base32 + "0farmgviaarb3f4xn751card3v0lza57vwgl5azxxq65p7li44i3")))) + (build-system python-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "-k" + ;; network tests, 2977/3283 pass + (string-append + " not TestFindSCP" + " and not TestQRGetServiceClass" + " and not TestQRMoveServiceClass" + " and not TestStoreSCP" + " and not test_ae.py" + " and not test_echoscp.py" + " and not test_qrscp_echo.py" + " and not test_storescp.py" + " and not test_pr_level_patient" + " and not test_pr_level_series" + " and not test_scp_cancelled")))))))) + (native-inputs (list python-pyfakefs python-pytest)) + (propagated-inputs (list python-pydicom python-sqlalchemy)) + (home-page "https://github.com/pydicom/pynetdicom") + (synopsis "Python implementation of the DICOM networking protocol") + (description + "@code{pynetdicom} is a Python package that implements the DICOM +networking protocol. Working with @code{pydicom}, it allows the easy creation +of DICOM @acronym{SCUs,Service Class Users} and +@acronym{SCPs,Service Class Providers}.") + (license license:expat))) + (define-public python-libneuroml (package (name "python-libneuroml") -- cgit v1.2.3 From 5a616cc14b25d173680aa2f4787b996b68f899e0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 23 Jan 2024 23:40:45 +0000 Subject: gnu: python-pynetdicom: Simplify package style. * gnu/package/python-science.scm (python-pynetdicom)[build-system]: Swap to pyproject-build-system. [description]: Simplify wording, indent. Change-Id: If4e80d06edb0080685d0695f30abc2f9db669f45 --- gnu/packages/python-science.scm | 42 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 22 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 44d0157665..a49562643b 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2400,35 +2400,33 @@ (define-public python-pynetdicom (sha256 (base32 "0farmgviaarb3f4xn751card3v0lza57vwgl5azxxq65p7li44i3")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - (list #:phases #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-vv" "-k" - ;; network tests, 2977/3283 pass - (string-append - " not TestFindSCP" - " and not TestQRGetServiceClass" - " and not TestQRMoveServiceClass" - " and not TestStoreSCP" - " and not test_ae.py" - " and not test_echoscp.py" - " and not test_qrscp_echo.py" - " and not test_storescp.py" - " and not test_pr_level_patient" - " and not test_pr_level_series" - " and not test_scp_cancelled")))))))) + (list + #:test-flags + ;; Tests takes about 10-15min to complete. + ;; Skip tests that require networking. + #~(list "-k" (string-append + " not TestFindSCP" + " and not TestQRGetServiceClass" + " and not TestQRMoveServiceClass" + " and not TestStoreSCP" + " and not test_ae.py" + " and not test_echoscp.py" + " and not test_qrscp_echo.py" + " and not test_storescp.py" + " and not test_pr_level_patient" + " and not test_pr_level_series" + " and not test_scp_cancelled")))) (native-inputs (list python-pyfakefs python-pytest)) (propagated-inputs (list python-pydicom python-sqlalchemy)) (home-page "https://github.com/pydicom/pynetdicom") (synopsis "Python implementation of the DICOM networking protocol") (description "@code{pynetdicom} is a Python package that implements the DICOM -networking protocol. Working with @code{pydicom}, it allows the easy creation -of DICOM @acronym{SCUs,Service Class Users} and -@acronym{SCPs,Service Class Providers}.") +networking protocol. It allows the easy creation of DICOM +@acronym{SCUs,Service Class Users} and @acronym{SCPs,Service Class +Providers}.") (license license:expat))) (define-public python-libneuroml -- cgit v1.2.3 From b537437af714eabbec88d7b19d3b008fdfd6b1b3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 23 Jan 2024 23:54:44 +0000 Subject: gnu: python-pydicom: Simplify package style. * gnu/packages/python-science.scm (python-pydicom)[build-system]: Swap to pyproject-build-system. [description]: Simplify wording, indent. Change-Id: I7ef413ea2da6cbb83eb33424c559f7ac5ed549cb --- gnu/packages/python-science.scm | 47 ++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 26 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index a49562643b..466f99b756 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2145,40 +2145,35 @@ (define-public python-pydicom (sha256 (base32 "18l26s53yf5j9yh2zwq83n74qq4f2iq0cfblamsw4y9k35l1c108")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list - #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (chdir "pydicom/tests") - (invoke "python3" "-m" "pytest" "-k" ;skip tests using web data - (string-append - "not test_jpeg_ls_pixel_data.py" - " and not test_gdcm_pixel_data.py" - " and not test_pillow_pixel_data.py" - " and not test_rle_pixel_data.py" - " and not Test_JPEG_LS_Lossless_transfer_syntax" - " and not test_numpy_pixel_data.py" - " and not test_data_manager.py" - " and not test_handler_util.py" - " and not test_overlay_np.py" - " and not test_encoders_pydicom.py" - " and not test_encaps.py" - " and not test_reading_ds_with_known_tags_with_UN_VR" - " and not TestDatasetOverlayArray" - " and not TestReader" - " and not test_filewriter.py")))))))) + #:test-flags + ;; Skip tests that require networking. + #~(list "-k" (string-append + "not test_jpeg_ls_pixel_data.py" + " and not test_gdcm_pixel_data.py" + " and not test_pillow_pixel_data.py" + " and not test_rle_pixel_data.py" + " and not Test_JPEG_LS_Lossless_transfer_syntax" + " and not test_numpy_pixel_data.py" + " and not test_data_manager.py" + " and not test_handler_util.py" + " and not test_overlay_np.py" + " and not test_encoders_pydicom.py" + " and not test_encaps.py" + " and not test_reading_ds_with_known_tags_with_UN_VR" + " and not TestDatasetOverlayArray" + " and not TestReader" + " and not test_filewriter.py")))) (native-inputs (list python-pytest)) (inputs (list gdcm libjpeg-turbo)) (propagated-inputs (list python-numpy python-pillow)) (home-page "https://github.com/pydicom/pydicom") (synopsis "Python library for reading and writing DICOM data") (description "@code{python-pydicom} is a Python library for reading and -writing DICOM medical imaging data. It lets developers read, modify and write -DICOM data in a pythonic way.") +writing DICOM medical imaging data. It can read, modify and write DICOM +data.") (license license:expat))) (define-public python-deepdish -- cgit v1.2.3 From 3419c216b485532dd3c3ed7959553d7900eb1fea Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 23 Jan 2024 23:57:32 +0000 Subject: gnu: python-pydicom: Update to 2.4.4. * gnu/packages/python-science.scm (python-pydicom): Update to 2.4.4. Change-Id: I996115fb3bdf0bd61d2b2dcdb2500b31ce104597 --- gnu/packages/python-science.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 466f99b756..88cced9633 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2135,7 +2135,7 @@ (define-public python-pyfma (define-public python-pydicom (package (name "python-pydicom") - (version "2.3.0") + (version "2.4.4") (source (origin (method git-fetch) (uri (git-reference @@ -2144,7 +2144,7 @@ (define-public python-pydicom (file-name (git-file-name name version)) (sha256 (base32 - "18l26s53yf5j9yh2zwq83n74qq4f2iq0cfblamsw4y9k35l1c108")))) + "0ksyyc1hbhyqy289a2frn84ss29fb7czirx3dkxx56f4ia33b4c8")))) (build-system pyproject-build-system) (arguments (list -- cgit v1.2.3 From afd0fe50b0b2fda09a12d5a09dfb8927084b1a16 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 24 Jan 2024 11:32:43 +0100 Subject: gnu: python-pyts: Update to 0.13.0. * gnu/packages/python-science.scm (python-pyts): Update to 0.13.0. [build-system]: Use pyproject-build-system. [arguments]: Remove custom 'check phase; enable all tests. [propagated-inputs]: Remove python-matplotlib. Change-Id: Iafcc047d8bb14e1eef514fd92aa53f8fda38eab0 --- gnu/packages/python-science.scm | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 88cced9633..c207dc2601 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -830,34 +830,16 @@ (define-public python-pythran (define-public python-pyts (package (name "python-pyts") - (version "0.12.0") + (version "0.13.0") (source (origin (method url-fetch) (uri (pypi-uri "pyts" version)) (sha256 (base32 - "1cb5jwp8g52a3hxay6mxbfzk16ly6yj6rphq8cwbwk1k2jdf11dg")))) - (build-system python-build-system) - (arguments - (list - #:phases - '(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-v" - ;; XXX: This test fails for unknown reasons - ;; Expected: - ;; (40, 9086) - ;; Got: - ;; (40, 9088) - "-k" - "not pyts.multivariate.transformation.weasel_muse.WEASELMUSE"))))))) + "00pdzfkl0b4vhfdm8zas7b904jm2hhivdwv3wcmpik7l2p1yr85c")))) + (build-system pyproject-build-system) (propagated-inputs - (list python-joblib - python-matplotlib - python-numba - python-numpy + (list python-joblib python-numba python-numpy python-scikit-learn python-scipy)) (native-inputs -- cgit v1.2.3 From a4c9766108b247d761196d930c1f762858822872 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Wed, 24 Jan 2024 12:20:32 -0300 Subject: gnu: python-xarray-einstats: Update to 0.7.0. * gnu/packages/python-science.scm (python-xarray-einstats): Update to 0.7.0. Change-Id: Iddd1fca8c37f05a928d20b90f9f95814f31435b2 --- gnu/packages/python-science.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index c207dc2601..9d72608de4 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -9,7 +9,7 @@ ;;; Copyright © 2019, 2021, 2022, 2023 Maxim Cournoyer ;;; Copyright © 2019 Giacomo Leidi ;;; Copyright © 2020 Pierre Langlois -;;; Copyright © 2020, 2021, 2022, 2023 Vinicius Monego +;;; Copyright © 2020, 2021, 2022, 2023, 2024 Vinicius Monego ;;; Copyright © 2021 Greg Hogan ;;; Copyright © 2021 Roel Janssen ;;; Copyright © 2021 Paul Garlick @@ -1038,7 +1038,7 @@ (define-public python-xarray (define-public python-xarray-einstats (package (name "python-xarray-einstats") - (version "0.5.1") + (version "0.7.0") (source (origin (method git-fetch) ; no tests in PyPI (uri (git-reference @@ -1047,7 +1047,7 @@ (define-public python-xarray-einstats (file-name (git-file-name name version)) (sha256 (base32 - "1gg7p2lq7zxic64nbr6a8ynizs8rjzb29fnqib7hw3lmp13wsfm0")))) + "14c424swpdginaz4pm3nmkizxy34x19q6xq3d4spx9s9031f6n3a")))) (build-system pyproject-build-system) (native-inputs (list python-einops python-flit-core python-numba python-pytest)) -- cgit v1.2.3 From a01afbd30095f2285d8829dab006afdaba1d4103 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 23 Jan 2024 10:41:41 +0000 Subject: gnu: python-trimesh: Update to 4.0.10. * gnu/packages/python-science.scm (python-trimesh): Update to 4.0.10. [build-system]: Swap to pyproject-build-system. Change-Id: I757b4c27db9969d42021434883a057debbbc83fd --- gnu/packages/python-science.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 9d72608de4..41f4c6245a 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -408,14 +408,14 @@ (define-public python-tdda (define-public python-trimesh (package (name "python-trimesh") - (version "3.23.5") + (version "4.0.10") (source (origin (method url-fetch) (uri (pypi-uri "trimesh" version)) (sha256 - (base32 "08967axlnmfv98n05dhrkynyrmcc814hl8184gzzmcy4rjg6dzdx")))) - (build-system python-build-system) + (base32 "1p3cnkajh2zmp6zwn23q3c73jcjlkq61h3r53ys0bmg58l8kpqrn")))) + (build-system pyproject-build-system) (propagated-inputs (list python-numpy)) (native-inputs -- cgit v1.2.3 From 42c7b50e230af7717ea843e1b264c6a212880d53 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 23 Jan 2024 11:31:04 +0000 Subject: gnu: python-trimesh: Enable tests. * gnu/packages/python-science.scm (python-trimesh): Enable tests and apply new package style. [source]: Use git checkout which has working test suit. [arguments] <#:test-flags>: Disable tests requiring optional Python modules. [propagated-inputs]: Add python-chardet, python-colorlog python-httpx python-jsonschema python-lxml python-networkx python-pillow python-requests python-rtree python-scipy python-setuptools python-shapely python-sympy and python-xxhash. Change-Id: I1aa363053c2d736bc44b8f9071c637256cc2d952 --- gnu/packages/python-science.scm | 68 ++++++++++++++++++++++++++++++++--------- 1 file changed, 53 insertions(+), 15 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 41f4c6245a..87d75159f2 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -50,6 +50,7 @@ (define-module (gnu packages python-science) #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages databases) + #:use-module (gnu packages digest) #:use-module (gnu packages gcc) #:use-module (gnu packages geo) #:use-module (gnu packages image) @@ -411,28 +412,65 @@ (define-public python-trimesh (version "4.0.10") (source (origin - (method url-fetch) - (uri (pypi-uri "trimesh" version)) + (method git-fetch) ; no tests in PyPI + (uri (git-reference + (url "https://github.com/mikedh/trimesh") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "1p3cnkajh2zmp6zwn23q3c73jcjlkq61h3r53ys0bmg58l8kpqrn")))) + (base32 "0ry04qaw0pb3hkxv4gmna87jwk97aqangd21wbr2dr4xshmkbyyb")))) (build-system pyproject-build-system) - (propagated-inputs - (list python-numpy)) + (arguments + (list + #:test-flags + #~(list "-k" (string-append + ;; XXX: When more optional modules are available review + ;; disabled tests once again. + ;; + ;; Disable tests requiring optional, not packed modules. + "not test_material_round" + " and not test_bezier_example" + " and not test_discrete" + " and not test_dxf" + " and not test_layer" + " and not test_multi_nodupe" + " and not test_obj_roundtrip" + " and not test_roundtrip" + " and not test_scene" + " and not test_slice_onplane" + " and not test_svg" + " and not test_svg")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "trimesh/resources/templates/blender_boolean.py.tmpl" + (("\\$MESH_PRE") + "'$MESH_PRE'"))))))) (native-inputs (list python-coveralls python-pyinstrument python-pytest python-pytest-cov)) - (arguments - `(;; TODO: Get tests to work. - #:tests? #f - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-build - (lambda _ - (substitute* "trimesh/resources/templates/blender_boolean.py.tmpl" - (("\\$MESH_PRE") - "'$MESH_PRE'"))))))) + (propagated-inputs + (list python-chardet + python-colorlog + python-httpx + python-jsonschema + python-lxml + python-networkx + python-numpy + python-pillow + ;; python-pycollada ; not packed yet, optional + ;; python-pyglet ; not packed yet, optional + python-requests + python-rtree + python-scipy + python-setuptools + python-shapely + ;; python-svg-path ; not packed yet, optional + python-sympy + python-xxhash)) (home-page "https://github.com/mikedh/trimesh") (synopsis "Python library for loading and using triangular meshes") (description -- cgit v1.2.3 From 77a07a968fbeac49bffa5cb10d5eb7e004cc316b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 21 Jan 2024 22:40:10 +0000 Subject: gnu: python-pyamg: Regenerate bundled files. * gnu/packages/python-science.scm (python-pyamg) [source]: Delete auto-generated files. [arguments] <#:phases>: Add 'amg-core-bind-them phase to re-generate *_bind.cpp files deleted in snippet. [native-inputs]: Add python-cppheaderparser and python-pyyaml. [description]: Improve style, omit implementation details. Change-Id: I6f68914cd912e6f4592e51c21b129847e73be847 --- gnu/packages/python-science.scm | 50 +++++++++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 9 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 87d75159f2..f775d46349 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -513,32 +513,64 @@ (define-public python-pyamg (source (origin (method url-fetch) (uri (pypi-uri "pyamg" version)) + (modules '((guix build utils))) + (snippet + ;; Delete autogenerated files, regenerate in a phase. + #~(begin + (for-each + (lambda (file) + (delete-file (string-append "pyamg/amg_core/" file))) + '("air_bind.cpp" + "evolution_strength_bind.cpp" + "graph_bind.cpp" + "krylov_bind.cpp" + "linalg_bind.cpp" + "relaxation_bind.cpp" + "ruge_stuben_bind.cpp" + "smoothed_aggregation_bind.cpp" + "tests/bind_examples_bind.cpp")))) (sha256 (base32 "0l3dliwynxyjvbgpmi2k8jqvkkw6fc00c8w69h6swhrkfh0ql12z")))) - (build-system pyproject-build-system) (arguments (list #:test-flags ;; Test installed package in order to find C++ modules. - #~(list "--pyargs" "pyamg.tests"))) - (native-inputs (list pybind11 python-pytest python-setuptools-scm)) + #~(list "--pyargs" "pyamg.tests") + #:phases + #~(modify-phases %standard-phases + ;; Regenerate the autogenerated files. + (add-after 'unpack 'amg-core-bind-them + (lambda _ + ;; bindthem.py heavily depends on location to produce *_bind.cpp + ;; file, make it available in tests as well. + (copy-file "pyamg/amg_core/bindthem.py" + "pyamg/amg_core/tests/bindthem.py") + (with-directory-excursion "pyamg/amg_core" + (substitute* "bindthem.py" + (("/usr/bin/env python3") (which "python3"))) + (invoke "sh" "generate.sh")) + (with-directory-excursion "pyamg/amg_core/tests" + (invoke "python" "bindthem.py" "bind_examples.h"))))))) + (build-system pyproject-build-system) + (native-inputs + (list pybind11 + python-cppheaderparser + python-pytest + python-pyyaml + python-setuptools-scm)) (propagated-inputs (list python-numpy python-scipy)) (home-page "https://github.com/pyamg/pyamg") (synopsis "Algebraic Multigrid Solvers in Python") (description "PyAMG is a Python library of Algebraic Multigrid -(AMG) solvers. - -PyAMG features implementations of: +(AMG) solvers. It features implementations of: @itemize @item Ruge-Stuben (RS) or Classical AMG @item AMG based on Smoothed Aggregation (SA) @item Adaptive Smoothed Aggregation (αSA) @item Compatible Relaxation (CR) @item Krylov methods such as CG, GMRES, FGMRES, BiCGStab, MINRES, etc. -@end itemize -PyAMG is primarily written in Python with supporting C++ code for -performance critical operations.") +@end itemize") (license license:expat))) (define-public python-tspex -- cgit v1.2.3 From 343f4f1d70ea01bc3f6382546e1db5c907c6af01 Mon Sep 17 00:00:00 2001 From: Troy Figiel Date: Mon, 29 Jan 2024 19:16:54 +0100 Subject: gnu: Add python-unyt. * gnu/packages/python-science.scm (python-unyt): New variable. Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-science.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index f775d46349..d29f583a32 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1287,6 +1287,34 @@ (define-public python-statannot annotations on an existing boxplots and barplots generated by seaborn.") (license license:expat))) +(define-public python-unyt + (package + (name "python-unyt") + (version "3.0.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "unyt" version)) + (sha256 + (base32 "00900bw24rxgcgwgxp9xlx0l5im96r1n5hn0r3mxvbdgc3lyyq48")))) + (build-system pyproject-build-system) + ;; Astropy is an optional import, but we do not include it as it creates a + ;; module cycle: astronomy->python-science->astronomy. + (propagated-inputs (list python-h5py ; optional import + python-matplotlib ; optional import + python-numpy + python-sympy)) + ;; Pint is optional, but we do not propagate it due to its size. + (native-inputs (list python-pint python-pytest)) + (home-page "https://unyt.readthedocs.io") + (synopsis "Library for working with data that has physical units") + (description + "@code{unyt} is a Python library working with data that has physical +units. It defines the @code{unyt.array.unyt_array} and +@code{unyt.array.unyt_quantity} classess (subclasses of NumPy’s ndarray class) +for handling arrays and scalars with units,respectively") + (license license:bsd-3))) + (define-public python-upsetplot (package (name "python-upsetplot") -- cgit v1.2.3 From cde0adaacdcfb401ff249a715c0fbfd20d64bbfd Mon Sep 17 00:00:00 2001 From: Troy Figiel Date: Mon, 29 Jan 2024 19:17:14 +0100 Subject: gnu: Add python-pyjanitor. * gnu/packages/python-science.scm (python-pyjanitor): New variable. Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-science.scm | 57 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index d29f583a32..2affbd3fa5 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -47,6 +47,7 @@ (define-module (gnu packages python-science) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) #:use-module (gnu packages check) + #:use-module (gnu packages chemistry) #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages databases) @@ -840,6 +841,62 @@ (define-public python-pandera @end itemize") (license license:expat))) +(define-public python-pyjanitor + (package + (name "python-pyjanitor") + (version "0.26.0") + (source + (origin + ;; The build requires the mkdocs directory for the description in + ;; setup.py. This is not included in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/pyjanitor-devs/pyjanitor") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1f8xbl1k9l2z56bapp7v6bd3016zrk48igcaz6hb553r6yfl7vfx")))) + (build-system pyproject-build-system) + ;; Pyjanitor has an extensive test suite. For quick debugging, the tests + ;; marked turtle can be skipped using "-m" "not turtle". + (arguments + (list + #:test-flags '(list + "-n" (number->string (parallel-job-count)) + ;; Tries to connect to the internet. + "-k" "not test_is_connected" + ;; PySpark has not been packaged yet. + "--ignore=tests/spark/functions/test_clean_names_spark.py" + "--ignore=tests/spark/functions/test_update_where_spark.py") + #:phases #~(modify-phases %standard-phases + (add-before 'check 'set-env-ci + (lambda _ + ;; Some tests are skipped if the JANITOR_CI_MACHINE + ;; variable is not set. + (setenv "JANITOR_CI_MACHINE" "1")))))) + (propagated-inputs (list python-multipledispatch + python-natsort + python-pandas-flavor + python-scipy + ;; Optional imports. + python-biopython ;biology submodule + python-unyt)) ;engineering submodule + (native-inputs (list python-pytest + python-pytest-xdist + ;; Optional imports. We do not propagate them due to + ;; their size. + python-numba ;speedup of joins + rdkit)) ;chemistry submodule + (home-page "https://github.com/pyjanitor-devs/pyjanitor") + (synopsis "Tools for cleaning and transforming pandas DataFrames") + (description + "@code{pyjanitor} provides a set of data cleaning routines for +@code{pandas} DataFrames. These routines extend the method chaining API +defined by @code{pandas} for a subset of its methods. Originally, this +package was a port of the R package by the same name and it is inspired by the +ease-of-use and expressiveness of the @code{dplyr} package.") + (license license:expat))) + (define-public python-pythran (package (name "python-pythran") -- cgit v1.2.3 From 9f1ab898c3d4dace221b62bcdeca4f940c7abee7 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 30 Jan 2024 13:43:32 +0200 Subject: gnu: python-scipy: Enable building on more architectures. * gnu/packages/python-science.scm (python-scipy)[propagated-inputs]: Only include python-jupytext on systems where it is supported. Change-Id: Ic085094e4e3977e4c0698e8c03de09ee8e70f144 --- gnu/packages/python-science.scm | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 2affbd3fa5..a0123dac21 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2015 Federico Beffa ;;; Copyright © 2016 Ben Woodcroft ;;; Copyright © 2016 Hartmut Goebel -;;; Copyright © 2016, 2022, 2023 Efraim Flashner +;;; Copyright © 2016, 2022-2024 Efraim Flashner ;;; Copyright © 2016-2020, 2022 Marius Bakke ;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; Copyright © 2019, 2021, 2022, 2023 Maxim Cournoyer @@ -137,19 +137,22 @@ (define-public python-scipy (copy-recursively "build/html" html))) (format #t "sphinx-build not found, skipping~%")))))))) (propagated-inputs - (list python-jupytext - python-matplotlib - python-mpmath - python-mypy - python-numpy - python-numpydoc - python-pydata-sphinx-theme - python-pydevtool - python-pythran - python-rich-click - python-sphinx - python-threadpoolctl - python-typing-extensions)) + (append + (if (supported-package? python-jupytext) ; Depends on pandoc. + (list python-jupytext) + '()) + (list python-matplotlib + python-mpmath + python-mypy + python-numpy + python-numpydoc + python-pydata-sphinx-theme + python-pydevtool + python-pythran + python-rich-click + python-sphinx + python-threadpoolctl + python-typing-extensions))) (inputs (list openblas pybind11-2.10)) (native-inputs (list gfortran -- cgit v1.2.3 From a879dd8b360adcf8f7d69c317dec8cae0f48270c Mon Sep 17 00:00:00 2001 From: Wiktor Żelazny Date: Wed, 8 Jun 2022 18:52:57 +0200 Subject: gnu: Add python-pandarallel. * gnu/packages/python-science.scm (python-pandarallel): New variable. Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-science.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index a0123dac21..2b4e74f9be 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -766,6 +766,42 @@ (define-public python-pandas-stubs @code{python-pandas}.") (license license:bsd-3))) +(define-public python-pandarallel + (package + (name "python-pandarallel") + (version "1.6.5") + (source + (origin + (method git-fetch) ; no tests in PyPI + (uri (git-reference + (url "https://github.com/nalepae/pandarallel/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0r2wlxlwp4wia0vm15k4cp421mwa20k4k5g2ml01inprj8bl1p0p")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags #~(list "-n" (number->string (parallel-job-count))))) + (propagated-inputs + (list python-dill + python-pandas + python-psutil)) + (native-inputs + (list python-mkdocs-material + python-numpy + python-pytest + python-pytest-cov + python-pytest-xdist)) + (home-page "https://nalepae.github.io/pandarallel/") + (synopsis "Tool to parallelize Pandas operations across CPUs") + (description + "@code{pandarallel} allows any Pandas user to take advantage of their +multi-core computer, while Pandas uses only one core. @code{pandarallel} also +offers nice progress bars (available on Notebook and terminal) to get an rough +idea of the remaining amount of computation to be done.") + (license license:bsd-3))) + (define-public python-pandera (package (name "python-pandera") -- cgit v1.2.3 From 36f5db706c22d7d643154fc841d0a4018195189b Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Thu, 16 Jun 2022 18:37:16 +0000 Subject: gnu: Add python-pynrrd. * gnu/packages/python-science.scm (python-pynrrd): New variable. Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-science.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 2b4e74f9be..d2404529bc 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2600,6 +2600,32 @@ (define-public python-pynetdicom Providers}.") (license license:expat))) +(define-public python-pynrrd + (package + (name "python-pynrrd") + (version "0.4.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mhe/pynrrd") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "12vlgx2k7jxbq9r9maiix4dbk8alixa0il420bqwhzln08s3chz1")))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (delete 'ensure-no-mtimes-pre-1980)))) + (propagated-inputs (list python-numpy)) + (home-page "https://github.com/mhe/pynrrd") + (synopsis "Python module for reading and writing NRRD files") + (description + "@code{pynrrd} is a Python module for reading and writing NRRD +files into and from numpy arrays.") + (license license:expat))) + (define-public python-libneuroml (package (name "python-libneuroml") -- cgit v1.2.3 From ac18dfc675cd289c28bc312ae9d859e358a30107 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 6 Feb 2024 19:49:50 +0000 Subject: gnu: python-pynrrd: Improve description. * gnu/packages/python-science.scm (python-pynrrd) [description]: Add definition of NRRD. Change-Id: I0335df0eb4be600d81799da64374ddfb49b06720 --- gnu/packages/python-science.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index d2404529bc..3b3faecde2 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2622,8 +2622,10 @@ (define-public python-pynrrd (home-page "https://github.com/mhe/pynrrd") (synopsis "Python module for reading and writing NRRD files") (description - "@code{pynrrd} is a Python module for reading and writing NRRD -files into and from numpy arrays.") + "@code{pynrrd} is a Python module for reading and writing @acronym{NRRD, +Nearly Raw Raster Data} files (format designed to support scientific +visualization and image processing involving N-dimensional raster data) into +and from numpy arrays.") (license license:expat))) (define-public python-libneuroml -- cgit v1.2.3 From 5dee582c135f4e3e639b8b2a9d502037053075d9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 6 Feb 2024 19:55:29 +0000 Subject: gnu: python-pynrrd: Update to 1.0.0. * gnu/packages/python-science.scm (python-pynrrd): Update to 1.0.0. [arguments]: Keep 'ensure-no-mtimes-pre-1980 phase as it's building with it successfully. [propagated-inputs]: Add python-nptyping and python-typing-extensions. Change-Id: Ic4dcd0825e71d3eb4acd39694bee9e22e8485f9f --- gnu/packages/python-science.scm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 3b3faecde2..30547e9cbe 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2603,7 +2603,7 @@ (define-public python-pynetdicom (define-public python-pynrrd (package (name "python-pynrrd") - (version "0.4.3") + (version "1.0.0") (source (origin (method git-fetch) (uri (git-reference @@ -2612,13 +2612,10 @@ (define-public python-pynrrd (file-name (git-file-name name version)) (sha256 (base32 - "12vlgx2k7jxbq9r9maiix4dbk8alixa0il420bqwhzln08s3chz1")))) + "09gdyi4kbi3512ydgqxkgr4j7b9a95qh83fk2n9s41bns4id9xj7")))) (build-system python-build-system) - (arguments - (list #:phases - #~(modify-phases %standard-phases - (delete 'ensure-no-mtimes-pre-1980)))) - (propagated-inputs (list python-numpy)) + (propagated-inputs + (list python-nptyping python-numpy python-typing-extensions)) (home-page "https://github.com/mhe/pynrrd") (synopsis "Python module for reading and writing NRRD files") (description -- cgit v1.2.3 From 5729b2b3521aa9d4a88c8ac680bd37ffe3b3acc6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 6 Feb 2024 21:11:40 +0000 Subject: gnu: python-traittypes: Simplify package. * gnu/packages/python-science.scm (python-traittypes) [build-system]: Swap to pyproject-build-system. [arguments]: Move excluded tests to <#:test-flags>. Use standard 'check phase. Change-Id: I4cab0c94036a7e5f0851edf2833dfac2f675d2a0 --- gnu/packages/python-science.scm | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 30547e9cbe..2e0a17aac7 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2153,16 +2153,11 @@ (define-public python-traittypes (uri (pypi-uri "traittypes" version)) (sha256 (base32 "1mlv93irdrgxrhnhq3ksi9585d55bpi4mv9dha4p8gkkjiia4vxy")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; This one test fails because it doesn't raise an expected - ;; exception. - (invoke "pytest" "-vv" "-k" "not test_bad_values"))))))) + (list + ;; This one test fails because it doesn't raise an expected exception. + #:test-flags #~(list "-k" "not test_bad_values"))) (propagated-inputs (list python-traitlets)) (native-inputs (list python-numpy -- cgit v1.2.3 From 9474e64b098d52159ccec62969e6dceb924d5d5d Mon Sep 17 00:00:00 2001 From: TimotheeMathieu Date: Sat, 20 Jan 2024 12:41:00 +0100 Subject: gnu: Add python-scikit-opt. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-science.scm (python-scikit-opt): New variable. Change-Id: I47d6b35d9658a37a242b4db61d293fa7efd33802 Signed-off-by: Ludovic Courtès --- gnu/packages/python-science.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 2e0a17aac7..b6a116f16b 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -339,6 +339,27 @@ (define-public python-scikit-image "Scikit-image is a collection of algorithms for image processing.") (license license:bsd-3))) +(define-public python-scikit-opt + (package + (name "python-scikit-opt") + (version "0.6.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "scikit-opt" version)) + (sha256 + (base32 "0ycqizgsj7q57asc1bphzhf1fx9zqn0vx5rli7q541bas64hfqiy")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-numpy python-scipy)) + (home-page "https://github.com/guofei9987/scikit-opt") + (synopsis "Swarm intelligence algorithms in Python") + (description + "Scikit-opt (or sko) is a Python module implementing @dfn{swarm +intelligence} algorithms: genetic algorithm, particle swarm optimization, +simulated annealing, ant colony algorithm, immune algorithm, artificial fish +swarm algorithm.") + (license license:expat))) + (define-public python-scikit-optimize (package (name "python-scikit-optimize") -- cgit v1.2.3