~ruther/guix-local

b05b0f47dec5203b9ab3b107930ae31af126981e — Sharlatan Hellseher 2 months ago bbc9e77
gnu: Add python-narwhals-minimal.

* gnu/packages/python-science.scm (python-narwhals-minimal): New variable.

Change-Id: I972010ea88c649d41227c51256b739a022a350df
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 13 insertions(+), 0 deletions(-)

M gnu/packages/python-science.scm
M gnu/packages/python-science.scm => gnu/packages/python-science.scm +13 -0
@@ 1941,6 1941,19 @@ between dataframe libraries.
@end itemize")
    (license license:expat)))

;; A bare minimal package, mainly to use in tests and reduce closure
;; size. Tests are left out in the main package to slim down native-inputs.
(define-public python-narwhals-minimal
  (package/inherit python-narwhals
    (name "python-narwhals-minimal")
    (arguments
     (substitute-keyword-arguments (package-arguments python-anndata)
       ((#:tests? _ #t) #f)))
    (native-inputs
     (list python-hatchling))
    ;; All Narwals dependencies are optional.
    (propagated-inputs '())))

(define-public python-ndindex
  (package
    (name "python-ndindex")