From 6a778b47052d27e4edb242c32fccd9339c7d5a12 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 6 May 2022 00:03:20 -0400 Subject: 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. --- gnu/packages/python-xyz.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1f72d1a284..2c141b104c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12663,9 +12663,13 @@ JSON Reference and JSON Pointer.") (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 -- cgit 1.4.1