emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51148: closed ([PATCH] gnu: Add python-tinydb.)


From: GNU bug Tracking System
Subject: bug#51148: closed ([PATCH] gnu: Add python-tinydb.)
Date: Tue, 23 Nov 2021 08:23:02 +0000

Your message dated Tue, 23 Nov 2021 09:22:39 +0100
with message-id <87v90jl1rk.fsf_-_@gnu.org>
and subject line Re: bug#51148: [PATCH] gnu: Add python-tinydb.
has caused the debbugs.gnu.org bug report #51148,
regarding [PATCH] gnu: Add python-tinydb.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
51148: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51148
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-tinydb. Date: Tue, 12 Oct 2021 01:44:49 -0400
* gnu/packages/databases.scm (python-tinydb): New variable.
---
 gnu/packages/databases.scm | 40 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index b1dd44da1c..60970b9c8e 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -579,6 +579,46 @@ the API, and provides features such as:
 @end itemize")
     (license license:bsd-3)))
 
+(define-public python-tinydb
+  (package
+    (name "python-tinydb")
+    (version "4.5.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "tinydb" version))
+              (sha256
+               (base32
+                "1x9c4s42930wwal3ds0plwb57kg5c3gj7kbpy64c29vq478b463x"))))
+    (build-system python-build-system)
+    (arguments
+       ;; PyPi tarball does not contain tests and github repository does not 
+       ;; have a setup.py file (only pyproject).
+      `(#:tests? #f
+        #:phases
+        (modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+              (when tests?
+                (add-installed-pythonpath inputs outputs)
+                (setenv "PYTHONPATH" (string-append ".:" (getenv 
"PYTHONPATH")))
+                (invoke "pytest")))))))
+    (native-inputs
+      `(("python-pytest" ,python-pytest)
+        ("python-pytest-cov" ,python-pytest-cov)
+        ("python-pycodestyle" ,python-pycodestyle)
+        ("python-pyyaml" ,python-pyyaml)))
+    (propagated-inputs
+      `(("python-typing-extensions" ,python-typing-extensions)))
+    (home-page "https://github.com/msiemens/tinydb";)
+    (synopsis
+      "TinyDB is a lightweight document oriented database")
+    (description
+"TinyDB is a lightweight document oriented database optimized for
+your happiness.  It's written in pure Python and has no external
+dependencies.  The targets are small apps that would be blown away by a
+SQL-DB or an external database server.")
+    (license license:expat)))
+
 (define-public python-pylibmc
   (package
     (name "python-pylibmc")
-- 
2.33.0




--- End Message ---
--- Begin Message --- Subject: Re: bug#51148: [PATCH] gnu: Add python-tinydb. Date: Tue, 23 Nov 2021 09:22:39 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hi,

jgart <jgart@dismail.de> skribis:

> I forgot to add the copyright at the top.

In the meantime another line had been added for you.  :-)

> Attached is version 3 of the patchset.
>
> * gnu/packages/databases.scm (python-tinydb): New variable.

I applied and tweaked indentation.

Thanks, and thanks Vinicius for reviewing,
Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]