gnu: python-fastbencode: Build C extensions.

* gnu/packages/python-xyz.scm (python-fastbencode)
[source]: Delete pre-generated C source files in snippet.
[native-inputs]: Add python-cython.
This commit is contained in:
Maxim Cournoyer 2022-05-06 00:03:20 -04:00
parent 553c009d74
commit 6a778b4705
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -12663,9 +12663,13 @@ (define-public python-fastbencode
(origin
(method url-fetch)
(uri (pypi-uri "fastbencode" version))
(modules '((guix build utils)))
;; Delete pre-generated Cython C files.
(snippet '(for-each delete-file (find-files "." "\\.c$")))
(sha256
(base32 "1r66w3vpmvfmssshjpgqaj2m14c8p94nymr96mwn61idajz9mg5n"))))
(build-system python-build-system)
(native-inputs (list python-cython))
(home-page "https://github.com/breezy-team/fastbencode")
(synopsis "Python Bencode (de)serializer with optional fast C extensions")
(description