guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: python-debian: Set version to build reproduc


From: guix-commits
Subject: branch master updated: gnu: python-debian: Set version to build reproducibly.
Date: Tue, 07 Jun 2022 11:45:56 -0400

This is an automated email from the git hooks/post-receive script.

vagrantc pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 96d47797dc gnu: python-debian: Set version to build reproducibly.
96d47797dc is described below

commit 96d47797dce361bd7f3b1ce860b1ec4851e2db5a
Author: Vagrant Cascadian <vagrant@reproducible-builds.org>
AuthorDate: Mon Jun 6 19:54:34 2022 -0700

    gnu: python-debian: Set version to build reproducibly.
    
    * gnu/packages/python-xyz.scm (python-debian)[arguments]: Add 'set-version
      phase.
---
 gnu/packages/python-xyz.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2c76ff1922..f3d7fab973 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12465,6 +12465,13 @@ Python.")
     (build-system python-build-system)
     (arguments
      `(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'set-version
+                    ;; for reproducible builds, otherwise python-debian
+                    ;; generates a _version.py including the date
+                    (lambda _
+                      (copy-file "lib/debian/_version.py.in" 
"lib/debian/_version.py")
+                      (substitute* "lib/debian/_version.py"
+                        (("__CHANGELOG_VERSION__") ,version))))
                   (add-after 'unpack 'remove-debian-specific-tests
                     ;; python-apt, apt and dpkg are not yet available in guix,
                     ;; and these tests heavily depend on them.



reply via email to

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