summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2026-02-13 11:29:17 +0000
committerDanny Milosavljevic <dannym@friendly-machines.com>2026-02-21 21:52:40 +0100
commiteb3d2b85f97599c18d5133dd6c151003b78804dd (patch)
tree639830a1849a335d8238f7491031384789f0a4c3 /gnu/packages
parent384b63aa08e83959549f6bb3e962be90aafa6d4e (diff)
gnu: python-euphonic: Clean up.
* gnu/packages/physics.scm (python-euphonic)[arguments]<#:phases> {fix-lazy-fixture}: Delete phase. {delete-source}: New phase. Change-Id: Ibdcc1892aef88219074859c19205f024cd49e659
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/physics.scm32
1 files changed, 7 insertions, 25 deletions
diff --git a/gnu/packages/physics.scm b/gnu/packages/physics.scm
index 78eafa780bb..06acf991d08 100644
--- a/gnu/packages/physics.scm
+++ b/gnu/packages/physics.scm
@@ -396,7 +396,7 @@ conventions.")
(define-public python-euphonic
(package
(name "python-euphonic")
- (version "1.4.5")
+ (version "1.5.0")
(source
(origin
(method git-fetch)
@@ -405,7 +405,7 @@ conventions.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1n3w2acwi9x1v4wavigrd0qwd559rx6aaz0xknhd4gnbqwzn05qp"))))
+ (base32 "18l5chzk6qhggxsgkqqidxx2nr4piziabvirw05v43kqm9awjfww"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -413,33 +413,15 @@ conventions.")
#~(modify-phases %standard-phases
(add-before 'build 'fix-numpy-include
(lambda* (#:key inputs #:allow-other-keys)
- (let ((numpy (assoc-ref inputs "python-numpy")))
- ;; Patch meson.build to use the correct numpy include path
+ (let* ((numpy (assoc-ref inputs "python-numpy"))
+ (site (site-packages inputs `(("out" . ,numpy)))))
(substitute* "meson.build"
(("np_inc = include_directories\\(py\\.get_path\\('platlib'\\) / 'numpy/core/include'\\)")
(string-append "np_inc = include_directories('"
- numpy "/lib/python3.11/site-packages/numpy/core/include')"))))))
- (add-before 'build 'fix-lazy-fixture
+ numpy site "/numpy/core/include')"))))))
+ (add-before 'check 'delete-source
(lambda _
- ;; Migrate from pytest-lazy-fixture to pytest-lazy-fixtures.
- ;; Add import and replace pytest.lazy_fixture with lf.
- (for-each
- (lambda (file)
- (substitute* file
- (("^import pytest" all)
- (string-append "from pytest_lazy_fixtures import lf\n" all))
- (("pytest\\.lazy_fixture")
- "lf")))
- (find-files "tests_and_analysis" "\\.py$"))))
- ;; Run tests after install so the C extension is available.
- (delete 'check)
- (add-after 'install 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- ;; Remove source euphonic dir so tests use installed package.
- (delete-file-recursively "euphonic")
- (invoke "pytest" "-vv" "tests_and_analysis")))))))
+ (delete-file-recursively "euphonic"))))))
(propagated-inputs
(list python-brille ; optional
python-h5py ; optional, for phonopy-reader