guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 6f45742b8d9ffc8e3795631357f96d0e5b9b83c6
Author: Danny Milosavljevic <[email protected]>
AuthorDate: Fri Feb 13 11:38:20 2026 +0000
gnu: Add python-pyoncat.
* gnu/packages/physics.scm (python-pyoncat): New variable.
Change-Id: Id8104e241296524b527041e13ab3b845c1ca0cc1
---
gnu/packages/physics.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/physics.scm b/gnu/packages/physics.scm
index 828e0f9a9f..67193fc18c 100644
--- a/gnu/packages/physics.scm
+++ b/gnu/packages/physics.scm
@@ -249,6 +249,45 @@ crystallographic data exchange endorsed by the
International Union of
Crystallography.")
(license license:psfl)))
+(define-public python-pyoncat
+ (package
+ (name "python-pyoncat")
+ (version "2.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pyoncat" version))
+ (sha256
+ (base32 "16lkpbkn7wyx8ag42sjmqm0c5acfs5dbglf3ahnfwpvcgcxj6jql"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f ; no tests in sdist
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-build-system
+ (lambda _
+ ;; Upstream uses the deprecated poetry.masonry.api build
+ ;; backend which requires the full poetry package. Guix
+ ;; only has poetry-core, so switch to
poetry.core.masonry.api.
+ (substitute* "pyproject.toml"
+ (("requires = \\[\"poetry\"\\]")
+ "requires = [\"poetry-core\"]")
+ (("build-backend = \"poetry\\.masonry\\.api\"")
+ "build-backend = \"poetry.core.masonry.api\"")))))))
+ (native-inputs
+ (list python-poetry-core))
+ (propagated-inputs
+ (list python-oauthlib
+ python-requests
+ python-requests-oauthlib))
+ (home-page "https://oncat.ornl.gov")
+ (synopsis "Python client for ONCat (ORNL Neutron Catalog)")
+ (description
+ "This package provides a Python client for ONCat, the Oak Ridge National
+Laboratory Neutron Catalog. ONCat is a data catalog service for neutron
+scattering facilities.")
+ (license license:expat)))
+
(define-public python-pystog
(package
(name "python-pystog")