gnu: python-aenum: Update to 3.1.12.

* gnu/packages/python-xyz.scm (python-aenum): Update to 3.1.12.
[source]: Add snippet to delete Python 2 specific files.

Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Kaelyn Takata 2023-04-21 21:46:12 +00:00 committed by Andreas Enge
parent c1fb1ac45b
commit dcf2de77e1
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -2407,13 +2407,18 @@ language. It aims to be fast.")
(define-public python-aenum (define-public python-aenum
(package (package
(name "python-aenum") (name "python-aenum")
(version "2.2.4") (version "3.1.12")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "aenum" version)) (uri (pypi-uri "aenum" version))
(sha256 (sha256
(base32 "0r1812bjm72x73pl7y4yhffr4zbdjgxa08avsy4b3di0pqgqv0l1")))) (base32 "1w1ffkcxgnimi5w8802qk6w2qxz9k8hpvsg6yy2zi08ahs8iqlry"))
(modules '((guix build utils)))
(snippet
;; Delete the Python 2 specific files which won't compile
;; in Python 3.
'(for-each delete-file (find-files "." "_py2.py$")))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases (modify-phases %standard-phases