From 2e7ae98c245ddb9fd2181260a4be7c47116bdc77 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Fri, 13 Feb 2026 11:05:28 +0000 Subject: gnu: python-brille: Move to (gnu packages physics). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-science.scm (python-brille): Move from here… * gnu/packages/physics.scm (python-brille): …to here. * gnu/local.mk (GNU_SYSTEM_MODULES): Add reference to that file. * etc/teams.scm (science): Add reference to that file. Change-Id: I207940441fb4406fb034d5582ba9f5517544179b --- gnu/packages/python-science.scm | 77 ----------------------------------------- 1 file changed, 77 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 798ad52e9e3..aded33595fe 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -6498,83 +6498,6 @@ Python style, together with a fast and comfortable execution environment.") python-setuptools python-wheel)))) -(define-public python-brille - (package - (name "python-brille") - (version "0.8.3") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/brille/brille") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1vyxa7k6yrpxizbmljrv7bnsf7dzxsfbs4id36x09jjxwh7dysjj")))) - (build-system cmake-build-system) - (arguments - (list - #:configure-flags - #~(list - ;; Boost.System is header-only since 1.69, but FindBoost looks for - ;; libboost_system.so which doesn't exist. - "-DHIGHFIVE_USE_BOOST=OFF" - ;; Pretend we're doing a scikit-build build to skip Conan. - "-DSKBUILD=ON" - (string-append "-DSKBUILD_PROJECT_NAME=brille") - (string-append "-DSKBUILD_PROJECT_VERSION=" #$version)) - #:imported-modules `(,@%cmake-build-system-modules - ,@%pyproject-build-system-modules) - #:modules '((guix build cmake-build-system) - ((guix build python-build-system) #:select (site-packages)) - (guix build utils)) - #:phases - (with-extensions (list (pyproject-guile-json)) - #~(modify-phases %standard-phases - (add-after 'unpack 'create-pkg-info - (lambda _ - ;; Create PKG-INFO so DynamicVersion.cmake finds version without git. - (call-with-output-file "PKG-INFO" - (lambda (port) - (format port "Metadata-Version: 2.1 -Name: brille -Version: ~a -" #$version))))) - (add-before 'configure 'set-version - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) - (add-after 'install 'install-python - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((site-packages (site-packages inputs outputs))) - (mkdir-p (string-append site-packages "/brille")) - ;; Install Python source files and compiled extension module. - (for-each (lambda (file) - (install-file file - (string-append site-packages "/brille"))) - (append - (find-files "../source/brille" "\\.py$") - (find-files "." "^_brille\\..*\\.so$")))))))))) - (native-inputs - (list catch2-3 - cmake-minimal - highfive - pybind11 - python-wrapper - python-setuptools - python-setuptools-scm)) - (inputs - (list hdf5)) - (propagated-inputs - (list python-numpy)) - (home-page "https://github.com/brille/brille") - (synopsis "Symmetry operations and interpolation in Brillouin zones") - (description - "Brille is a C++ library for symmetry operations and linear interpolation -within an irreducible part of the first Brillouin zone. It provides Python -bindings via pybind11 for use in phonon calculations and inelastic neutron -scattering simulations.") - (license license:agpl3+))) - (define-public python-spglib (package (name "python-spglib") -- cgit v1.3