guix-commits
[Top][All Lists]
Advanced

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

69/145: gnu: Add python-pysendfile.


From: guix-commits
Subject: 69/145: gnu: Add python-pysendfile.
Date: Mon, 10 Jan 2022 11:44:10 -0500 (EST)

apteryx pushed a commit to branch version-1.4.0
in repository guix.

commit 999de7231a204c2cb37b7f69a0c996907d663063
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Dec 20 22:48:34 2021 -0500

    gnu: Add python-pysendfile.
    
    * gnu/packages/python-xyz.scm (python-pysendfile): New variable.
---
 gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index aa89cc47b1..fd3d701735 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10504,6 +10504,31 @@ add functionality and customization to your projects 
with their own plugins.")
 (define-public python2-straight-plugin
   (package-with-python2 python-straight-plugin))
 
+(define-public python-pysendfile
+  (package
+    (name "python-pysendfile")
+    (version "2.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pysendfile" version))
+       (sha256
+        (base32 "05qf0m32isflln1zjgxlpw0wf469lj86vdwwqyizp1h94x5l22ji"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (replace 'check
+                     (lambda* (#:key tests? #:allow-other-keys)
+                       (when tests?
+                         (setenv "HOME" "/tmp")
+                         (invoke "make" "test")))))))
+    (home-page "https://github.com/giampaolo/pysendfile";)
+    (synopsis "Python interface to sendfile(2)")
+    (description "The @{pysendfile} Python library provides an interface to
+the @code{sendfile(2)} system call.")
+    (license license:expat)))
+
 (define-public python-fonttools
   (package
     (name "python-fonttools")



reply via email to

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