diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2025-01-28 21:26:40 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-01-28 21:27:13 +0100 |
| commit | 6083002133e1f1a0c18e3ebb84121d82efbd419f (patch) | |
| tree | 146cf111b3d9daabd18f16827cb3ef742be904ef /gnu/packages/python-science.scm | |
| parent | f9b1e548c95a115e2bb143d0f4b1632a600f32da (diff) | |
gnu: Add python-scikit-misc.
* gnu/packages/python-science.scm (python-scikit-misc): New variable.
Change-Id: I8fb3c46fe8a927e5d2fbd3222a423330e771379e
Diffstat (limited to 'gnu/packages/python-science.scm')
| -rw-r--r-- | gnu/packages/python-science.scm | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 49738d8559c..b8fca94cf74 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm | |||
| @@ -652,6 +652,55 @@ logic, also known as grey logic.") | |||
| 652 | "Scikit-image is a collection of algorithms for image processing.") | 652 | "Scikit-image is a collection of algorithms for image processing.") |
| 653 | (license license:bsd-3))) | 653 | (license license:bsd-3))) |
| 654 | 654 | ||
| 655 | (define-public python-scikit-misc | ||
| 656 | (package | ||
| 657 | (name "python-scikit-misc") | ||
| 658 | (version "0.5.1") | ||
| 659 | (source | ||
| 660 | (origin | ||
| 661 | (method url-fetch) | ||
| 662 | (uri (pypi-uri "scikit_misc" version)) | ||
| 663 | (sha256 | ||
| 664 | (base32 "18sj7qa3kk4pqh3rzg2c64lf03nciv9cf985yh1h2kpqqndgdhf5")))) | ||
| 665 | (build-system pyproject-build-system) | ||
| 666 | (arguments | ||
| 667 | (list | ||
| 668 | #:test-flags | ||
| 669 | '(list "--pyargs" "skmisc") | ||
| 670 | #:phases | ||
| 671 | #~(modify-phases %standard-phases | ||
| 672 | (add-after 'unpack 'fix-version | ||
| 673 | (lambda _ | ||
| 674 | (call-with-output-file "skmisc/_version.py" | ||
| 675 | (lambda (port) | ||
| 676 | (display (string-append "__version__ = \"" #$version "\"") | ||
| 677 | port))) | ||
| 678 | (substitute* "meson.build" | ||
| 679 | (("^ version: run_command.*") | ||
| 680 | (string-append " version: '" #$version "',\n"))) | ||
| 681 | (substitute* "pyproject.toml" | ||
| 682 | (("dynamic = \\['version'\\]") | ||
| 683 | (string-append "version = \"" #$version "\"")))))))) | ||
| 684 | (propagated-inputs (list meson-python | ||
| 685 | python-numpy | ||
| 686 | python-numpydoc | ||
| 687 | python-spin | ||
| 688 | python-twine)) | ||
| 689 | (native-inputs (list gfortran | ||
| 690 | pkg-config | ||
| 691 | python-cython-3 | ||
| 692 | python-meson-python | ||
| 693 | python-numpy | ||
| 694 | python-pytest | ||
| 695 | python-pytest-cov | ||
| 696 | python-setuptools | ||
| 697 | python-wheel)) | ||
| 698 | (home-page "https://has2k1.github.io/scikit-misc/stable") | ||
| 699 | (synopsis "Miscellaneous tools for scientific computing.") | ||
| 700 | (description "This package provides miscellaneous tools for data analysis | ||
| 701 | and scientific computing.") | ||
| 702 | (license license:bsd-3))) | ||
| 703 | |||
| 655 | (define-public python-scikit-opt | 704 | (define-public python-scikit-opt |
| 656 | (package | 705 | (package |
| 657 | (name "python-scikit-opt") | 706 | (name "python-scikit-opt") |
