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 49738d8559..b8fca94cf7 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -652,6 +652,55 @@ logic, also known as grey logic.") "Scikit-image is a collection of algorithms for image processing.") (license license:bsd-3))) +(define-public python-scikit-misc + (package + (name "python-scikit-misc") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "scikit_misc" version)) + (sha256 + (base32 "18sj7qa3kk4pqh3rzg2c64lf03nciv9cf985yh1h2kpqqndgdhf5")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + '(list "--pyargs" "skmisc") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-version + (lambda _ + (call-with-output-file "skmisc/_version.py" + (lambda (port) + (display (string-append "__version__ = \"" #$version "\"") + port))) + (substitute* "meson.build" + (("^ version: run_command.*") + (string-append " version: '" #$version "',\n"))) + (substitute* "pyproject.toml" + (("dynamic = \\['version'\\]") + (string-append "version = \"" #$version "\"")))))))) + (propagated-inputs (list meson-python + python-numpy + python-numpydoc + python-spin + python-twine)) + (native-inputs (list gfortran + pkg-config + python-cython-3 + python-meson-python + python-numpy + python-pytest + python-pytest-cov + python-setuptools + python-wheel)) + (home-page "https://has2k1.github.io/scikit-misc/stable") + (synopsis "Miscellaneous tools for scientific computing.") + (description "This package provides miscellaneous tools for data analysis +and scientific computing.") + (license license:bsd-3))) + (define-public python-scikit-opt (package (name "python-scikit-opt") |