[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
46/57: gnu: Add python-sqlalchemy-mock.
From: |
guix-commits |
Subject: |
46/57: gnu: Add python-sqlalchemy-mock. |
Date: |
Tue, 22 Sep 2020 12:43:42 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit de84d3b1e230bc90c6a12153e2e59b7e09b41ab7
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Sep 1 17:02:59 2020 +0200
gnu: Add python-sqlalchemy-mock.
* gnu/packages/databases.scm (python-alchemy-mock): New public variable.
---
gnu/packages/databases.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index cb6cf68..f26deb4 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2715,6 +2715,47 @@ You might also want to install the following optional
dependencies:
(define-public python2-sqlalchemy-utils
(package-with-python2 python-sqlalchemy-utils))
+(define-public python-alchemy-mock
+ (package
+ (name "python-alchemy-mock")
+ (version "0.4.3")
+ (home-page "https://github.com/miki725/alchemy-mock")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "alchemy-mock" version))
+ (sha256
+ (base32
+ "0ylxygl3bcdapzz529n8wgk7vx9gjwb3ism564ypkpd7dbsw653r"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ ;; Create pytest.ini that adds doctest options to
+ ;; prevent test failure. Taken from tox.ini.
+ (call-with-output-file "pytest.ini"
+ (lambda (port)
+ (format port "[pytest]
+doctest_optionflags=IGNORE_EXCEPTION_DETAIL
+")))
+ (invoke "pytest" "-vv" "--doctest-modules"
+ "alchemy_mock/"))))))
+ (native-inputs
+ `(("python-mock" ,python-mock)
+ ("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-six" ,python-six)
+ ("python-sqlalchemy" ,python-sqlalchemy)))
+ (synopsis "Mock helpers for SQLAlchemy")
+ (description
+ "This package provides mock helpers for SQLAlchemy that makes it easy
+to mock an SQLAlchemy session while preserving the ability to do asserts.
+
+Normally Normally SQLAlchemy's expressions cannot be easily compared as
+comparison on binary expression produces yet another binary expression, but
+this library provides functions to facilitate such comparisons.")
+ (license license:expat)))
+
(define-public python-alembic
(package
(name "python-alembic")
- 22/57: gnu: python-django-assets: Update to 2.0., (continued)
- 22/57: gnu: python-django-assets: Update to 2.0., guix-commits, 2020/09/22
- 23/57: gnu: python-dj-database-url: Update to 0.5.0., guix-commits, 2020/09/22
- 31/57: gnu: Add python-croniter., guix-commits, 2020/09/22
- 29/57: gnu: python-redis: Update to 3.5.3., guix-commits, 2020/09/22
- 25/57: gnu: python-django-bulk-update: Update to 2.2.0., guix-commits, 2020/09/22
- 27/57: gnu: python-django-contrib-comments: Update to 1.9.2., guix-commits, 2020/09/22
- 26/57: gnu: python-django-contact-form: Update to 1.8.1., guix-commits, 2020/09/22
- 40/57: gnu: Remove python2 versions of Django packages., guix-commits, 2020/09/22
- 33/57: gnu: python-django-rq: Update to 2.3.2., guix-commits, 2020/09/22
- 42/57: gnu: python-ldap: Update to 3.3.1., guix-commits, 2020/09/22
- 46/57: gnu: Add python-sqlalchemy-mock.,
guix-commits <=
- 44/57: gnu: Add python-django-logging-json., guix-commits, 2020/09/22
- 43/57: gnu: Add python-django-auth-ldap., guix-commits, 2020/09/22
- 55/57: gnu: python-mysqlclient: Update to 2.0.1., guix-commits, 2020/09/22
- 51/57: gnu: Django packages no longer propagate Django., guix-commits, 2020/09/22
- 52/57: gnu: python2-graphite-web: Update to 1.1.7., guix-commits, 2020/09/22
- 48/57: gnu: Add python-django-debug-toolbar-alchemy., guix-commits, 2020/09/22
- 54/57: gnu: python-mysqlclient: Remove unused inputs., guix-commits, 2020/09/22