gnu: python-cookiecutter: Update to 2.5.0.
* gnu/packages/python-xyz.scm (python-cookiecutter): Update to 2.5.0. [arguments]<#:phases>: Add 'pre-check phase to set a writable home directory and patch dynamically generated shebangs. Replace the default check phase to use pytest. [native-inputs]: Add bash-minimal and git. Remove python-pytest-catchlog. [propagated-inputs]: Add python-arrow, python-pyyaml and python-rich. Remove python-future, python-jinja2-time, python-poyo, python-text-unidecode and python-whichcraft. Change-Id: Ifc612136fa9a67ad643d0e1c031d173a3b3904a4 Signed-off-by: Christopher Baines <mail@cbaines.net>
parent
f18f59fa4b
commit
0de5677a18
|
@ -17483,28 +17483,47 @@ designed to work across multiple versions of Python.")
|
||||||
(define-public python-cookiecutter
|
(define-public python-cookiecutter
|
||||||
(package
|
(package
|
||||||
(name "python-cookiecutter")
|
(name "python-cookiecutter")
|
||||||
(version "1.7.3")
|
(version "2.5.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "cookiecutter" version))
|
(uri (pypi-uri "cookiecutter" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0mx49whhwcxmvcak27zr7p7ndzkn3w7psfd7fzh3n91fi1r4v6kb"))))
|
(base32 "1v1iafk8j2f5cciw9mf4263v91070c6z049cpnw42gwffhs907p6"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(native-inputs
|
(arguments
|
||||||
(list python-freezegun python-pytest python-pytest-catchlog
|
(list
|
||||||
python-pytest-cov python-pytest-mock))
|
#:phases #~(modify-phases %standard-phases
|
||||||
(propagated-inputs
|
(add-before 'check 'pre-check
|
||||||
(list python-binaryornot
|
(lambda _
|
||||||
|
;; test_get_user_config.py requires a writable home
|
||||||
|
;; directory.
|
||||||
|
(setenv "HOME"
|
||||||
|
(getcwd))
|
||||||
|
;; test_hooks.py dynamically creates shell scripts
|
||||||
|
;; with a /bin/bash shebang. We have to patch these.
|
||||||
|
(substitute* "tests/test_hooks.py"
|
||||||
|
(("/bin/bash")
|
||||||
|
(string-append #$(this-package-native-input
|
||||||
|
"bash-minimal") "/bin/bash")))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "pytest")))))))
|
||||||
|
(native-inputs (list bash-minimal
|
||||||
|
git
|
||||||
|
python-freezegun
|
||||||
|
python-pytest
|
||||||
|
python-pytest-cov
|
||||||
|
python-pytest-mock))
|
||||||
|
(propagated-inputs (list python-arrow
|
||||||
|
python-binaryornot
|
||||||
python-click
|
python-click
|
||||||
python-future
|
|
||||||
python-jinja2
|
python-jinja2
|
||||||
python-jinja2-time
|
python-pyyaml
|
||||||
python-poyo
|
|
||||||
python-requests
|
python-requests
|
||||||
python-slugify
|
python-rich
|
||||||
python-text-unidecode
|
python-slugify))
|
||||||
python-whichcraft))
|
|
||||||
(home-page "https://github.com/cookiecutter/cookiecutter")
|
(home-page "https://github.com/cookiecutter/cookiecutter")
|
||||||
(synopsis
|
(synopsis
|
||||||
"Command-line utility that creates projects from project templates")
|
"Command-line utility that creates projects from project templates")
|
||||||
|
|
Reference in New Issue