(define-public python-funcparserlib
(package
(name "python-funcparserlib")
(version "1.0.0a0")
(source
(origin
;; There's no tests on PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/vlasovskikh/funcparserlib")
(commit (string-append version))))
(file-name (git-file-name name version))
(sha256
(base32 "0xaa1naa6c2acwg946ackmznraj7nvmpcx5srq990wzjm2h1pxv1"))))
(native-inputs
`(("python-discover" ,python-discover)
("poetry" ,poetry)
("python-tox" ,python-tox)
("python-setuptools-scm" ,python-setuptools-scm)
("python-six" ,python-six)))
(arguments
'(#:tests? #t
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "tox")
#;(with-directory-excursion "tests"
(invoke "python" "-m" "unittest" "-v" "."))))))))
(build-system python-build-system)
(home-page
"https://github.com/vlasovskikh/funcparserlib")
(synopsis
"Recursive descent parsing library based on functional combinators")
(description
"This package is a recursive descent parsing library for Python based on
functional combinators. Parser combinators are just higher-order functions
that take parsers as their arguments and return them as result values.")
(license license:expat)))