From 5a8e60a12bb7e00711a6046a1fdb9ca36b8e99c0 Mon Sep 17 00:00:00 2001 From: "dupont-y@univ-nantes.fr" Date: Fri, 7 Apr 2023 17:53:14 +0200 Subject: [PATCH] workaround for seisbench version --- glicid-tainted/packages/staging.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/glicid-tainted/packages/staging.scm b/glicid-tainted/packages/staging.scm index 825c7ee..9822fff 100644 --- a/glicid-tainted/packages/staging.scm +++ b/glicid-tainted/packages/staging.scm @@ -86,8 +86,18 @@ (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases - (delete 'check)(delete 'sanity-check)))) + (delete 'check) + (delete 'sanity-check) + (add-before 'build 'pretend-version + ;; The version string is usually derived via setuptools-scm, but + ;; without the git metadata available, the version string is set to + ;; '0.0.0'. + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) + ))) + + (propagated-inputs (list python-h5py python-nest-asyncio python-numpy