diff options
author | Christopher Baines <mail@cbaines.net> | 2024-03-16 10:19:30 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-03-16 10:19:30 +0000 |
commit | 618cae45dc2a45079e910e72be2062c58590f262 (patch) | |
tree | 45536e51dafe3d34bd2cf55ee252e3345bf08803 /gnu/packages/python-xyz.scm | |
parent | 2ee54513196bad8e663e78ac695b6ffa0da49051 (diff) | |
parent | 00bf07ecccee86da4ced281bd28948c96db284e6 (diff) |
Merge remote-tracking branch 'savannah/master' into gnome-team
Change-Id: I775274c2693536e2efa36c9abca4c54c5c458e26
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 59 |
1 files changed, 56 insertions, 3 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 870f542019..8e8b6c6bfa 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -148,6 +148,7 @@ ;;; Copyright © 2023, 2024 Troy Figiel <troy@troyfigiel.com> ;;; Copyright © 2024 Timothee Mathieu <timothee.mathieu@inria.fr> ;;; Copyright © 2024 Ian Eure <ian@retrospec.tv> +;;; Copyright © 2024 Adriel Dumas--Jondeau <leirda@disroot.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -6378,6 +6379,46 @@ accessible for novices, as well as a scripting interface offering the full flexibility and power of the Python language.") (license license:gpl3+))) +(define-public kalamine + (package + (name "kalamine") + (version "0.36") + (source + (origin + (method url-fetch) + (uri (pypi-uri "kalamine" version)) + (sha256 + (base32 "1xxncavq5a0dydhzpfjdxmqsddl77275d9k9giw1032bdyb9d5is")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'make-test-layouts + (lambda _ + (apply invoke + (cons* "python" "-m" "kalamine.cli" "build" + (find-files "layouts" "\\.toml"))) + (invoke "python" "-m" "kalamine.cli" "new" "test.toml")))))) + (propagated-inputs + (list python-click + python-livereload + python-lxml + python-progress + python-pyyaml + python-tomli)) + ;; TODO: Add python-pytest-ruff to native-inputs once it has been + ;; packaged. + (native-inputs + (list python-hatchling python-mypy python-pytest)) + (home-page "https://github.com/OneDeadKey/kalamine") + (synopsis "Keyboard layout maker") + (description + "Kalamine provides a CLI to create advanced keyboard layout from a +textual portable description. It also supports layout emulation via web +browser.") + (license license:expat))) + (define-public python-dm-tree (package (name "python-dm-tree") @@ -17269,16 +17310,18 @@ consistent API regardless of how the configuration was created.") (define-public python-configargparse (package (name "python-configargparse") - (version "1.5.3") + (version "1.7") (source (origin (method url-fetch) (uri (pypi-uri "ConfigArgParse" version)) (sha256 (base32 - "17vky4ihicbf7nggg30xs7h3g5rxzwgch8vilnnrvdaacszkq2qv")))) + "1l866g1dcf2ljf8fl7ggpxk1rggry0lya4d5b264gradi1qp81p7")))) (build-system pyproject-build-system) (native-inputs (list python-mock python-pytest)) + (propagated-inputs + (list python-pyyaml)) (synopsis "Replacement for argparse") (description "A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables.") @@ -24004,8 +24047,18 @@ manipulation, or @code{stdout}.") (base32 "1vi2fj31vygfcqrkimdmk52q2ldw08g9fn4v4zlgdfgcjlhqyhxn")))) (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-rdflib-6-compatibility + (lambda _ + ;; See https://github.com/trungdong/prov/issues/151 + (substitute* "src/prov/tests/test_rdf.py" + (("\\.serialize\\(format=\"nt\"\\)") + ".serialize(format=\"nt\", encoding=\"utf-8\")"))))))) (propagated-inputs - (list python-dateutil python-lxml python-networkx python-rdflib-5)) + (list python-dateutil python-lxml python-networkx python-rdflib)) (native-inputs (list graphviz python-pydot)) (home-page "https://github.com/trungdong/prov") |