diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2023-05-30 20:58:40 +0100 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-06-14 14:52:22 +0300 |
commit | 0ce76141bfe52b7c65d6185d036b4eaad2a0f0a3 (patch) | |
tree | 7d8f8d57b692321a769ad6346ce6eacf2c95e61a /gnu/packages/python-xyz.scm | |
parent | 3a952dc04c980df43f9cbf1eacb2fb550e506e38 (diff) | |
download | guix-0ce76141bfe52b7c65d6185d036b4eaad2a0f0a3.tar.gz |
gnu: Add python-parsley.
* gnu/packages/python-xyz.scm (python-parsley): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f2d04a1307..8cacdd5796 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3829,6 +3829,39 @@ matplotlib plots or supply colors for a web application.") syntax.") (license license:x11))) +(define-public python-parsley + (package + (name "python-parsley") + (version "1.3") + (source (origin + ;; The source distributed on PyPI is outdated. + (method git-fetch) + (uri (git-reference + (url "https://github.com/pyga/parsley") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0550rw65ygqzbjc8a66hs355pzbx727kbn20dssdb6ls846gw2qs")))) + (build-system pyproject-build-system) + (arguments + (list + ;; XXX: Check why these 3 tests fail. + #:test-flags #~(list "-k" + (string-append "not test_sending_empty_netstring" + " and not test_sending_one_netstring" + " and not test_sending_two_netstrings")))) + (native-inputs (list python-pytest python-twisted)) + (home-page "https://launchpad.net/parsley") + (synopsis "Parsing and pattern matching Python library") + (description + "Parsley is a parsing library using PEG algorithm, so each expression in +the grammar rules works like a Python expression. In particular, alternatives +are evaluated in order, unlike table-driven parsers such as yacc, bison or PLY. +Parsley is an implementation of OMeta, an object-oriented pattern-matching +language.") + (license license:expat))) + (define-public python-polib (package (name "python-polib") |