guix-commits
[Top][All Lists]
Advanced

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

04/05: gnu: python-pyclipper: Update to 1.1.0post1.


From: Efraim Flashner
Subject: 04/05: gnu: python-pyclipper: Update to 1.1.0post1.
Date: Sun, 11 Nov 2018 04:14:52 -0500 (EST)

efraim pushed a commit to branch core-updates
in repository guix.

commit 8189ce6f05ebc49fc85934bdd1c81f8d43496a93
Author: Efraim Flashner <address@hidden>
Date:   Sun Nov 11 11:07:21 2018 +0200

    gnu: python-pyclipper: Update to 1.1.0post1.
    
    * gnu/packages/python.scm (python-pyclipper): Update to 1.1.0post1.
    [source]: Add snippet to remove cythonized source files.
    [arguments]: Add custom phase to generate cythonized files.
    [native-inputs]: Add python-cython.
    [description]: Update clipper library version.
---
 gnu/packages/python.scm | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f459282..e8d8daa 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12896,26 +12896,38 @@ belong to tagged versions.")
 (define-public python-pyclipper
   (package
     (name "python-pyclipper")
-    (version "1.0.6")
+    (version "1.1.0.post1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pyclipper" version ".zip"))
        (sha256
         (base32
-         "1zpmwv3bya3j984y5cf9x9d5108kf6mxldcba68wiq0frv5qrssw"))))
+         "0ldbkbnx94an4zzrwb1sxmg6k0jgk4cwmvcdyy8y5k1zslc612wa"))
+      (modules '((guix build utils)))
+      (snippet
+       '(begin
+          ;; This file is generated by Cython.
+          (delete-file "pyclipper/pyclipper.cpp") #t))))
     (build-system python-build-system)
     (arguments
-     `(#:tests? #f)); 8 Tests fail, 37 succeed
+     `(#:tests? #f  ; 8 Tests fail, 37 succeed
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'cythonize-sources
+           (lambda _
+             (with-directory-excursion "pyclipper"
+               (invoke "cython" "--cplus" "pyclipper.pyx")))))))
     (propagated-inputs
      `(("python-setuptools-scm-git-archive" 
,python-setuptools-scm-git-archive)))
     (native-inputs
-     `(("unzip" ,unzip)))
+     `(("python-cython" ,python-cython)
+       ("unzip" ,unzip)))
     (home-page "https://github.com/greginvm/pyclipper";)
     (synopsis "Wrapper for Angus Johnson's Clipper library")
     (description
      "Pyclipper is a Cython wrapper for the C++ translation of the
-  Angus Johnson's polygon clipping Clipper library (ver. 6.2.1).")
+Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
     (license license:expat)))
 
 (define-public python2-pyclipper



reply via email to

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