gnu: Add r-argparse.

* gnu/packages/cran.scm (r-argparse): New variable.
This commit is contained in:
Ricardo Wurmus 2018-07-04 17:43:03 +02:00 committed by Ricardo Wurmus
parent 3629622bc8
commit fa69759963
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 27 additions and 0 deletions

View File

@ -4619,3 +4619,30 @@ support for default values, positional argument support, etc.")
"This package was designed to find an acceptable Python binary that "This package was designed to find an acceptable Python binary that
matches version and feature constraints.") matches version and feature constraints.")
(license license:expat))) (license license:expat)))
;; This in not the same as "r-argparser"
(define-public r-argparse
(package
(name "r-argparse")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (cran-uri "argparse" version))
(sha256
(base32
"0fzrbj87b274vf96azdnsjxk2nf45d5wy58vzmlah4b4h7q4j524"))))
(build-system r-build-system)
(inputs `(("python" ,python)))
(propagated-inputs
`(("r-findpython" ,r-findpython)
("r-getopt" ,r-getopt)
("r-jsonlite" ,r-jsonlite)
("r-proto" ,r-proto)))
(home-page "https://github.com/trevorld/argparse")
(synopsis "Command line optional and positional argument parser")
(description
"This package provides a command line parser to be used with Rscript to
write shebang scripts that gracefully accept positional and optional arguments
and automatically generate usage notices.")
(license license:gpl2+)))