summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm49
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7967201f17b..c0eea3c6317 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1932,3 +1932,52 @@ capabilities.")
1932 1932
1933(define python2-numpy-bootstrap 1933(define python2-numpy-bootstrap
1934 (package-with-python2 python-numpy-bootstrap)) 1934 (package-with-python2 python-numpy-bootstrap))
1935
1936(define-public python-pyparsing
1937 (package
1938 (name "python-pyparsing")
1939 (version "2.0.2")
1940 (source
1941 (origin
1942 (method url-fetch)
1943 (uri (string-append "mirror://sourceforge/pyparsing"
1944 "/pyparsing-" version ".tar.gz"))
1945 (sha256
1946 (base32
1947 "01lasib0n2fp2k99c988qhz16lm9hcwmnmrmhybdb3jq2xmkvr0p"))))
1948 (build-system python-build-system)
1949 (outputs '("out" "doc"))
1950 (arguments
1951 `(#:tests? #f ; no test target
1952 #:modules ((guix build python-build-system)
1953 (guix build utils))
1954 #:phases
1955 (alist-cons-after
1956 'install 'install-doc
1957 (lambda* (#:key outputs #:allow-other-keys)
1958 (let* ((doc (string-append (assoc-ref outputs "doc")
1959 "/share/doc/" ,name "-" ,version))
1960 (html-doc (string-append doc "/html"))
1961 (examples (string-append doc "/examples")))
1962 (mkdir-p html-doc)
1963 (mkdir-p examples)
1964 (for-each
1965 (lambda (dir tgt)
1966 (map (lambda (file)
1967 (copy-file file (string-append tgt "/" (basename file))))
1968 (find-files dir ".*")))
1969 (list "docs" "htmldoc" "examples")
1970 (list doc html-doc examples))))
1971 %standard-phases)))
1972 (home-page "http://pyparsing.wikispaces.com")
1973 (synopsis "Python parsing class library")
1974 (description
1975 "The pyparsing module is an alternative approach to creating and
1976executing simple grammars, vs. the traditional lex/yacc approach, or the use
1977of regular expressions. The pyparsing module provides a library of classes
1978that client code uses to construct the grammar directly in Python code.")
1979 (license expat)))
1980
1981(define-public python2-pyparsing
1982 (package-with-python2 python-pyparsing))
1983