~ruther/guix-local

bb6da5668922db7fe87aa9bc174e5e226f4d9200 — Hugo Buddelmeijer 4 months ago 94ee99b
gnu: python-quicktions: Update to 1.22.

* gnu/packages/python-xyz.scm (python-quicktions): Update to 1.22.
[source] <origin>: Switch to git-fetch.
<snippet: Remove it as no longer required..
[build-system]: Switch to pyproject-build-system.
[arguments]: Remove #:phases.
[native-inputs]: Add python-setuptools.

Change-Id: I36bf05328539c13e942589584973ec3fe124a505
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 9 insertions(+), 24 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +9 -24
@@ 35339,35 35339,20 @@ runs on, such as a reliable machine-readable ID, or version information.")
(define-public python-quicktions
  (package
    (name "python-quicktions")
    (version "1.11")
    (version "1.22")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "quicktions" version))
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/scoder/quicktions")
              (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "1px21a6x527i1bsr2p6bbf3jziqpvd1vjkvvzh13gsy4iip0yvzn"))
       (modules '((guix build utils)))
       (snippet
        '(begin
           ;; This file is generated by Cython.
           (delete-file "src/quicktions.c") #t))))
    (build-system python-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-before 'build 'cythonize-sources
           (lambda _
             (with-directory-excursion "src"
               (invoke "cython" "quicktions.pyx"))))
         (replace 'check
           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
             (when tests?
               (add-installed-pythonpath inputs outputs)
               (invoke "pytest"))
             #t)))))
         "0kmbhbmz8cjsjp0lqmsi6a2imr4g9wy8rpfdwzghhs8hb6wj5gwy"))))
    (build-system pyproject-build-system)
    (native-inputs
     (list python-cython python-pytest))
     (list python-cython python-pytest python-setuptools))
    (home-page "https://github.com/scoder/quicktions")
    (synopsis "Fast fractions data type for rational numbers")
    (description