summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2016-06-25 22:51:22 +0800
committer宋文武 <iyzsong@gmail.com>2016-06-25 22:52:57 +0800
commit5a7441910d264ec4a04f623267bd6aa0a58755f8 (patch)
tree73c9dc0570fd183046bd48150c6ea685f07e365e /gnu
parent347175a27c4e37aa2f8acb8024cadb5d28b11cac (diff)
gnu: Add python-orator and python2-orator.
* gnu/packages/python.scm (python-orator, python2-orator): New variables.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 46179b51dbf..549bd347c12 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9617,3 +9617,41 @@ mocks, stubs and fakes.")
9617(define-public python2-flexmock 9617(define-public python2-flexmock
9618 (package-with-python2 python-flexmock)) 9618 (package-with-python2 python-flexmock))
9619 9619
9620(define-public python-orator
9621 (package
9622 (name "python-orator")
9623 (version "0.8.2")
9624 (source (origin
9625 (method url-fetch)
9626 (uri (pypi-uri "orator" version))
9627 (sha256
9628 (base32
9629 "1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569"))))
9630 (build-system python-build-system)
9631 (arguments '(#:tests? #f)) ; no tests
9632 (native-inputs
9633 `(("python-arrow" ,python-arrow)
9634 ("python-blinker" ,python-blinker)
9635 ("python-cleo" ,python-cleo)
9636 ("python-fake-factory" ,python-fake-factory)
9637 ("python-inflection" ,python-inflection)
9638 ("python-lazy-object-proxy" ,python-lazy-object-proxy)
9639 ("python-pyaml" ,python-pyaml)
9640 ("python-setuptools" ,python-setuptools)
9641 ("python-simplejson" ,python-simplejson)
9642 ("python-wrapt" ,python-wrapt)))
9643 (home-page "https://orator-orm.com/")
9644 (synopsis "ActiveRecord ORM for Python")
9645 (description
9646 "Orator provides a simple ActiveRecord-like Object Relational Mapping
9647implementation for Python.")
9648 (license license:expat)
9649 (properties `((python2-variant . ,(delay python2-orator))))))
9650
9651(define-public python2-orator
9652 (let ((base (package-with-python2 (strip-python2-variant python-orator))))
9653 (package
9654 (inherit base)
9655 (native-inputs
9656 `(("python2-ipaddress" ,python2-ipaddress)
9657 ,@(package-native-inputs base))))))