gnu: python-jsonschema: Update to 3.0.1.
* gnu/packages/python-xyz.scm (python-jsonschema): Update to 3.0.1. [arguments]: Adjust check phase for Twisted instead of nosetests. [native-inputs]: Remove PYTHON-NOSE and PYTHON-VCVERSIONER. Add PYTHON-SETUPTOOLS-SCM and PYTHON-TWISTED. [propagated-inputs]: Add PYTHON-ATTRS, PYTHON-PYRSISTENT and PYTHON-SIX. (python2-jsonschema)[native-inputs, propagated-inputs]: Inherit.
This commit is contained in:
parent
ea43f0d581
commit
1adde06e4e
|
@ -1923,21 +1923,28 @@ between Julian dates and Gregorian dates.")
|
||||||
(define-public python-jsonschema
|
(define-public python-jsonschema
|
||||||
(package
|
(package
|
||||||
(name "python-jsonschema")
|
(name "python-jsonschema")
|
||||||
(version "2.6.0")
|
(version "3.0.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "jsonschema" version))
|
(uri (pypi-uri "jsonschema" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg"))))
|
"03g20i1xfg4qdlk4475pl4pp7y0h37g1fbgs5qhy678q9xb822hc"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check (lambda _ (invoke "nosetests"))))))
|
(replace 'check
|
||||||
|
(lambda _
|
||||||
|
(setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
|
||||||
|
(invoke "trial" "jsonschema"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-nose" ,python-nose)
|
`(("python-setuptools_scm" ,python-setuptools-scm)
|
||||||
("python-vcversioner" ,python-vcversioner)))
|
("python-twisted" ,python-twisted)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-attrs" ,python-attrs)
|
||||||
|
("python-pyrsistent" ,python-pyrsistent)
|
||||||
|
("python-six" ,python-six)))
|
||||||
(home-page "https://github.com/Julian/jsonschema")
|
(home-page "https://github.com/Julian/jsonschema")
|
||||||
(synopsis "Implementation of JSON Schema for Python")
|
(synopsis "Implementation of JSON Schema for Python")
|
||||||
(description
|
(description
|
||||||
|
@ -1949,11 +1956,9 @@ between Julian dates and Gregorian dates.")
|
||||||
(let ((jsonschema (package-with-python2
|
(let ((jsonschema (package-with-python2
|
||||||
(strip-python2-variant python-jsonschema))))
|
(strip-python2-variant python-jsonschema))))
|
||||||
(package (inherit jsonschema)
|
(package (inherit jsonschema)
|
||||||
(native-inputs
|
|
||||||
`(("python2-mock" ,python2-mock)
|
|
||||||
,@(package-native-inputs jsonschema)))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python2-functools32" ,python2-functools32))))))
|
`(("python2-functools32" ,python2-functools32)
|
||||||
|
,@(package-propagated-inputs jsonschema))))))
|
||||||
|
|
||||||
(define-public python-schema
|
(define-public python-schema
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in New Issue