gnu: python-orator: Update to 0.9.7.

* gnu/packages/python.scm (python-orator, python2-orator): Update to 0.9.7.
[arguments]: Enable tests.  Loosen dependency requirements.
[propagated-inputs]: Remove python-arrow.  Add python-backpack,
python-pendulum, python-pygments, python-six.
(python2-orator)[propagated-inputs]: Also remove python2-ipaddress.
This commit is contained in:
Ben Woodcroft 2017-08-05 12:09:59 +10:00
parent 00c7888241
commit 77e5c37032
No known key found for this signature in database
GPG Key ID: 2A6AD9F4AAC20DF6
1 changed files with 26 additions and 10 deletions

View File

@ -109,6 +109,7 @@
#:use-module (gnu packages statistics) #:use-module (gnu packages statistics)
#:use-module (gnu packages tex) #:use-module (gnu packages tex)
#:use-module (gnu packages texinfo) #:use-module (gnu packages texinfo)
#:use-module (gnu packages time)
#:use-module (gnu packages tls) #:use-module (gnu packages tls)
#:use-module (gnu packages version-control) #:use-module (gnu packages version-control)
#:use-module (gnu packages video) #:use-module (gnu packages video)
@ -12232,24 +12233,44 @@ mocks, stubs and fakes.")
(define-public python-orator (define-public python-orator
(package (package
(name "python-orator") (name "python-orator")
(version "0.8.2") (version "0.9.7")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "orator" version)) (uri (pypi-uri "orator" version))
(sha256 (sha256
(base32 (base32
"1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569")))) "14r58z64fdp76ixnvmi4lni762b405ynmsx6chr1qihs3yl9zn6c"))))
(build-system python-build-system) (build-system python-build-system)
(arguments '(#:tests? #f)) ; no tests (arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'loosen-dependencies
;; Tests are not actually run since they are not included with the
;; distributed package, but dependencies are checked.
(lambda _
(substitute* "setup.py"
((",<.*'") "'")
(("flexmock==0.9.7") "flexmock")
;; The pytest-mock package is out of date, so we remove minimum
;; version requirement.
(("pytest-mock.*'") "pytest-mock'"))
#t)))))
(native-inputs
`(("python-pytest-mock" ,python-pytest-mock)
("python-pytest" ,python-pytest-3.0)
("python-flexmock" ,python-flexmock)))
(propagated-inputs (propagated-inputs
`(("python-arrow" ,python-arrow) `(("python-backpack" ,python-backpack)
("python-blinker" ,python-blinker) ("python-blinker" ,python-blinker)
("python-cleo" ,python-cleo) ("python-cleo" ,python-cleo)
("python-faker" ,python-faker) ("python-faker" ,python-faker)
("python-inflection" ,python-inflection) ("python-inflection" ,python-inflection)
("python-lazy-object-proxy" ,python-lazy-object-proxy) ("python-lazy-object-proxy" ,python-lazy-object-proxy)
("python-pendulum" ,python-pendulum)
("python-pyaml" ,python-pyaml) ("python-pyaml" ,python-pyaml)
("python-pygments" ,python-pygments)
("python-simplejson" ,python-simplejson) ("python-simplejson" ,python-simplejson)
("python-six" ,python-six)
("python-wrapt" ,python-wrapt))) ("python-wrapt" ,python-wrapt)))
(home-page "https://orator-orm.com/") (home-page "https://orator-orm.com/")
(synopsis "ActiveRecord ORM for Python") (synopsis "ActiveRecord ORM for Python")
@ -12260,12 +12281,7 @@ implementation for Python.")
(properties `((python2-variant . ,(delay python2-orator)))))) (properties `((python2-variant . ,(delay python2-orator))))))
(define-public python2-orator (define-public python2-orator
(let ((base (package-with-python2 (strip-python2-variant python-orator)))) (package-with-python2 (strip-python2-variant python-orator)))
(package
(inherit base)
(propagated-inputs
`(("python2-ipaddress" ,python2-ipaddress)
,@(package-propagated-inputs base))))))
(define-public python-prompt-toolkit (define-public python-prompt-toolkit
(package (package