mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-stone: Update to 3.3.9.
* gnu/packages/python-xyz.scm (python-stone): Update to 3.3.9. [source]: Switch to git-fetch. [build-system]: Switch to pyproject. [arguments]: Remove field. [propagated-inputs]: Add python-jinja2, python-packaging. [native-inputs]: Add python-setuptools, python-wheel. Remove python-coverage, python-mock. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
4fe1a73ab8
commit
180a69e23a
1 changed files with 12 additions and 29 deletions
|
@ -29820,38 +29820,21 @@ user-space file systems in Python.")
|
||||||
(define-public python-stone
|
(define-public python-stone
|
||||||
(package
|
(package
|
||||||
(name "python-stone")
|
(name "python-stone")
|
||||||
(version "3.2.1")
|
(version "3.3.9")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "stone" version))
|
(uri (git-reference
|
||||||
(sha256
|
(url "https://github.com/dropbox/stone")
|
||||||
(base32
|
(commit (string-append "v" version))))
|
||||||
"0xby5mpsms7b2rv8j6mvxzmzz5i9ii01brb9ylxz6kiv2i08piwv"))))
|
(file-name (git-file-name name version))
|
||||||
(build-system python-build-system)
|
(sha256
|
||||||
(arguments
|
(base32 "1x0kj4jygssjn66lbkln95chhf85vzy1wnpziy9jvpf4kbc1bmfy"))))
|
||||||
`(#:phases
|
(build-system pyproject-build-system)
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'change-version-requirements
|
|
||||||
(lambda _
|
|
||||||
;; Match the requirement in test/requirements.txt
|
|
||||||
(substitute* "setup.py"
|
|
||||||
(("pytest < 5") "pytest < 7"))
|
|
||||||
;; We don't care about a coverage report.
|
|
||||||
(substitute* "test/requirements.txt"
|
|
||||||
(("coverage.*") "coverage\n"))))
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
;; These tests don't import correctly.
|
|
||||||
(delete-file "test/test_js_client.py")
|
|
||||||
(delete-file "test/test_tsd_types.py")
|
|
||||||
(delete-file "test/test_python_gen.py")
|
|
||||||
(invoke "pytest")))))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-ply python-six))
|
(list python-jinja2 python-packaging python-ply python-six))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-coverage python-mock python-pytest python-pytest-runner))
|
(list python-pytest python-pytest-runner python-setuptools python-wheel))
|
||||||
(home-page "https://github.com/dropbox/stone")
|
(home-page "https://github.com/dropbox/stone")
|
||||||
(synopsis "Official Api Spec Language for Dropbox")
|
(synopsis "Official Api Spec Language for Dropbox")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue