# funcparserlib-upgrade.scm -rw-r--r-- 1.6 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
(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)))