summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm154
1 files changed, 137 insertions, 17 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 385426671e..c0e4b62418 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -140,6 +140,7 @@
;;; Copyright © 2023 Ivan Vilata-i-Balaguer <ivan@selidor.net>
;;; Copyright © 2023 Ontje Lünsdorf <ontje.luensdorf@dlr.de>
;;; Copyright © 2023 Parnikkapore <poomklao@yahoo.com>
+;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -625,6 +626,25 @@ hierarchy creation, can be initialized with keys, can be initialized from a
dictionary, can be convert to a dictionary, and is ordered by insertion.")
(license license:expat)))
+(define-public python-dotty-dict
+ (package
+ (name "python-dotty-dict")
+ (version "1.3.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "dotty_dict" version))
+ (sha256
+ (base32
+ "058sah2nyg44xq5wxywlzc3abzcv9fifnlvsflwma9mfp01nw0ab"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-poetry-core))
+ (home-page "https://github.com/pawelzny/dotty_dict")
+ (synopsis "Python library for accessing dictionaries using a dot syntax")
+ (description "This package provides a library that wraps the traditional
+Python dictionaries and provides a syntax to access nested dictionaries values
+using a dot syntax, for example: @code{dictionary['deeply.nested.key']}.")
+ (license license:expat)))
+
(define-public python-twodict
(package
(name "python-twodict")
@@ -1171,17 +1191,21 @@ Markdown. All extensions are found under the module namespace of pymdownx.")
(sha256
(base32
"0rv0cbala7ibjbaf6kkcn0mdhqdbajnvlcw0f15gwzfwg10g0z1q"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments
+ ;; This single test tries to write to $HOME/.cache/pint.
+ (list #:test-flags #~'("-k" "not test_auto")))
(native-inputs
- (list python-pytest ;for pytest-subtests
+ (list python-dask
+ python-distributed
+ python-importlib-metadata
+ python-pytest ;for pytest-subtests
python-pytest-cov
python-pytest-mpl
python-pytest-subtests
python-setuptools-scm
python-sparse
- python-dask
- python-xarray
- python-distributed))
+ python-xarray))
(home-page "https://github.com/hgrecco/pint")
(synopsis "Physical quantities module")
(description
@@ -2167,6 +2191,30 @@ access to HDF5 files, datasets and groups using established Python and NumPy
concepts.")
(license license:bsd-3)))
+(define-public python-hjson
+ ;; Using commit from master branch as the PyPI version does not contain
+ ;; the hjson/tests/ directory.
+ (let ((revision "0")
+ (commit "1687b811fcbbc54b5ac71cfbaa99f805e406fbcb"))
+ (package
+ (name "python-hjson")
+ (version (git-version "3.1.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/hjson/hjson-py")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1qfqnhvfx5mm7bdajjnnagmvns1zxyksjzh3k5la2ag6a8bp5gki"))))
+ (build-system pyproject-build-system)
+ (home-page "https://github.com/hjson/hjson-py")
+ (synopsis "Python package to parse HJSON documents")
+ (description "This package provides a Python library and a command-line
+interface utility to parse @url{https://hjson.github.io/, HJSON}) documents.")
+ (license license:expat))))
+
(define-public python-hnswlib
(package
(name "python-hnswlib")
@@ -4191,6 +4239,26 @@ package.")
"Extras is a set of extensions to the Python standard library.")
(license license:expat)))
+(define-public python-milc
+ (package
+ (name "python-milc")
+ (version "1.6.8")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "milc" version))
+ (sha256
+ (base32
+ "1pnwdg2653lc82qsv6c0kv9qcydh2f6w5mx5l4227zy1f6kr7b52"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-appdirs python-argcomplete python-colorama
+ python-halo python-spinners))
+ (home-page "https://github.com/clueboard/milc")
+ (synopsis "Python library for command line interface programs")
+ (description "MILC is a Python library for developing command line
+interface programs. This library provides features to parse arguments,
+automatic tab-completion, color support, logging to @code{std}, etc.")
+ (license license:expat)))
+
(define-public python-mimeparse
(package
(name "python-mimeparse")
@@ -7328,14 +7396,14 @@ objects.")
(define-public python-sparse
(package
(name "python-sparse")
- (version "0.13.0")
+ (version "0.14.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sparse" version))
(sha256
(base32
- "05ar1lhq1yy4nb78s7vpb1wz4ac4kj0r4lrd7yrf23kpmaacjpb8"))))
+ "1600xad37mff46xg80cy6bi3l2n6jm69j7sl19rzdmkcgyijfn2z"))))
(build-system python-build-system)
(arguments
`(#:phases
@@ -7347,8 +7415,8 @@ objects.")
(propagated-inputs
(list python-numba python-numpy python-scipy))
(native-inputs
- (list python-dask python-pytest python-pytest-black
- python-pytest-cov))
+ (list python-dask python-importlib-metadata python-pytest
+ python-pytest-black python-pytest-cov))
(home-page "https://github.com/pydata/sparse/")
(synopsis "Library for multi-dimensional sparse arrays")
(description
@@ -21014,13 +21082,13 @@ Mustache templating language renderer.")
(define-public python-duckdb
(package
(name "python-duckdb")
- (version "0.8.0")
+ (version "0.8.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "duckdb" version))
(sha256
(base32
- "13y1gs565q51li5fi9m7fpf0sqns8frsaii6v95acwjhmdds73f6"))))
+ "1sgfmii5xlkbx3hzyjxg80gl2ni1rxpabahl4gww9by2mgs3fkd5"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -22945,6 +23013,57 @@ library.")
(description
"This is the Cython-coded accelerator module for PyOpenGL.")))
+(define-public python-glcontext
+ (package
+ (name "python-glcontext")
+ (version "2.4.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/moderngl/glcontext")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0zzpwyqg19y600n09xz07cxk4jimh9vjraszda7g7ipijq6iasac"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-before 'build 'fix-lib-paths
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((mesa (assoc-ref inputs "mesa"))
+ (libx11 (assoc-ref inputs "libx11")))
+ (substitute* '("glcontext/x11.cpp"
+ "glcontext/egl.cpp")
+ (("\"libGL.so\"")
+ (string-append "\"" mesa "/lib/libGL.so\""))
+ (("\"libEGL.so\"")
+ (string-append "\"" mesa "/lib/libEGL.so\""))
+ (("\"libX11.so\"")
+ (string-append "\"" libx11 "/lib/libX11.so\"")))
+ (substitute* '("glcontext/__init__.py")
+ (("find_library\\('GL'\\)")
+ (string-append "'" mesa "/lib/libGL.so'"))
+ (("find_library\\('EGL'\\)")
+ (string-append "'" mesa "/lib/libEGL.so'"))
+ (("find_library\\(\"X11\"\\)")
+ (string-append "'" libx11 "/lib/libX11.so'"))))))
+ (replace 'check
+ (lambda* (#:key inputs outputs tests?
+ #:allow-other-keys)
+ (when tests?
+ (system "Xvfb :1 &")
+ (setenv "DISPLAY" ":1")
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "tests")))))))
+ (inputs (list libx11 mesa))
+ (native-inputs (list xorg-server-for-tests python-pytest python-psutil))
+ (home-page "https://github.com/moderngl/glcontext")
+ (synopsis "Portable OpenGL Context for ModernGL")
+ (description "Python-glcontext is a library providing an OpenGL
+implementation for ModernGL on multiple platforms.")
+ (license license:expat)))
+
(define-public python-rencode
(package
(name "python-rencode")
@@ -32558,13 +32677,13 @@ message queues for Python.")
(define-public python-itemadapter
(package
(name "python-itemadapter")
- (version "0.5.0")
+ (version "0.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "itemadapter" version))
(sha256
- (base32 "083wp3h2brh8x19jbdr8rz3biqwp3jlqd0rfzcyrjyhssffsgdh5"))))
+ (base32 "1aa898gjgwy3axxfrgsh4kdvhp6n6wz3ccdishq0gh8azf2q8xbp"))))
(build-system python-build-system)
(home-page "https://github.com/scrapy/itemadapter")
(synopsis "Common interface for data container classes")
@@ -32588,16 +32707,17 @@ implementing a pre-defined interface.")
(define-public python-itemloaders
(package
(name "python-itemloaders")
- (version "1.0.4")
+ (version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "itemloaders" version))
(sha256
- (base32 "15hc78h90qhwass1bga1c3xar2dd6j8sxg61zg6jvh74lf6csxqj"))))
- (build-system python-build-system)
+ (base32 "0j2aw4ipalj208594x80blpgkh1i63gqqa4nb67b823av9hirn11"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest))
(propagated-inputs
- (list python-itemadapter python-jmespath python-parsel python-w3lib))
+ (list python-itemadapter python-jmespath python-parsel python-w3lib))
(home-page "https://github.com/scrapy/itemloaders")
(synopsis "Base library for scrapy's ItemLoader")
(description "Itemloaders is a library that helps you collect data