gnu: python-jsonschema: Use 'nosetests'.

* gnu/packages/python.scm (python-jsonschema)[arguments]: Replace 'check
phase with python nosetests.
[native-inputs]: Add python-nose.
[home-page]: Use https.
(python2-jsonschema)[native-inputs]: Add python2-mock.
This commit is contained in:
Efraim Flashner 2016-11-14 22:47:33 +02:00
parent 571ffdebc3
commit 8bcd6b91ff
No known key found for this signature in database
GPG Key ID: F4C1D3917EACEE93
1 changed files with 9 additions and 3 deletions

View File

@ -2521,9 +2521,14 @@ version numbers.")
(base32 (base32
"0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn")))) "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn"))))
(build-system python-build-system) (build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check (lambda _ (zero? (system* "nosetests")))))))
(native-inputs (native-inputs
`(("python-vcversioner" ,python-vcversioner))) `(("python-nose" ,python-nose)
(home-page "http://github.com/Julian/jsonschema") ("python-vcversioner" ,python-vcversioner)))
(home-page "https://github.com/Julian/jsonschema")
(synopsis "Implementation of JSON Schema for Python") (synopsis "Implementation of JSON Schema for Python")
(description (description
"Jsonschema is an implementation of JSON Schema for Python.") "Jsonschema is an implementation of JSON Schema for Python.")
@ -2535,7 +2540,8 @@ version numbers.")
(strip-python2-variant python-jsonschema)))) (strip-python2-variant python-jsonschema))))
(package (inherit jsonschema) (package (inherit jsonschema)
(native-inputs (native-inputs
`(("python2-setuptools" ,python2-setuptools) `(("python2-mock" ,python2-mock)
("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs jsonschema))) ,@(package-native-inputs jsonschema)))
(propagated-inputs (propagated-inputs
`(("python2-functools32" ,python2-functools32)))))) `(("python2-functools32" ,python2-functools32))))))