mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-docopt: Switch to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-docopt) [build-system]: Use pyproject. [native-inputs]: Add python-setuptools. Change-Id: I9ab05b07d55ebaad946361535a7853a48b87ec45
This commit is contained in:
parent
1eea2cb515
commit
9be6a42604
1 changed files with 8 additions and 17 deletions
|
@ -19756,32 +19756,23 @@ library provides codecs are supported.")
|
||||||
(version "0.6.2")
|
(version "0.6.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch) ;no tests in PyPI archive
|
||||||
;; The release on PyPI does not include tests.
|
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/docopt/docopt")
|
(url "https://github.com/docopt/docopt")
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))
|
||||||
"0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))
|
|
||||||
(patches (search-patches "python-docopt-pytest6-compat.patch"))))
|
(patches (search-patches "python-docopt-pytest6-compat.patch"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest))
|
(list python-pytest python-setuptools))
|
||||||
(arguments
|
|
||||||
`(#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "py.test")))))))
|
|
||||||
(home-page "http://docopt.org")
|
(home-page "http://docopt.org")
|
||||||
(synopsis "Command-line interface description language for Python")
|
(synopsis "Command-line interface description language for Python")
|
||||||
(description "This library allows the user to define a command-line
|
(description
|
||||||
interface from a program's help message rather than specifying it
|
"This library allows the user to define a command-line interface from a
|
||||||
programmatically with command-line parsers like @code{getopt} and
|
program's help message rather than specifying it programmatically with
|
||||||
@code{argparse}.")
|
command-line parsers like @code{getopt} and @code{argparse}.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-pythonanywhere
|
(define-public python-pythonanywhere
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue