gnu: python-debian: Set version to build reproducibly.
* gnu/packages/python-xyz.scm (python-debian)[arguments]: Add 'set-version phase.
This commit is contained in:
parent
ceeb2bfcae
commit
96d47797dc
1 changed files with 7 additions and 0 deletions
|
@ -12465,6 +12465,13 @@ Python.")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#: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
|
(add-after 'unpack 'remove-debian-specific-tests
|
||||||
;; python-apt, apt and dpkg are not yet available in guix,
|
;; python-apt, apt and dpkg are not yet available in guix,
|
||||||
;; and these tests heavily depend on them.
|
;; and these tests heavily depend on them.
|
||||||
|
|
Reference in a new issue