diff options
| author | Danny Milosavljevic <dannym@friendly-machines.com> | 2026-02-13 11:38:44 +0000 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2026-02-21 21:52:40 +0100 |
| commit | 1ff320a10eb44d94a9fb601858192a485d8b9778 (patch) | |
| tree | 06efb2b23d721fc4e3cacb02c9a0960cc4ffc8b3 /gnu | |
| parent | 6f45742b8d9ffc8e3795631357f96d0e5b9b83c6 (diff) | |
gnu: Add python-pyoncatqt.
* gnu/packages/physics.scm (python-pyoncatqt): New variable.
Change-Id: I1a65870132d510607d25c51df401a5590797052b
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/physics.scm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gnu/packages/physics.scm b/gnu/packages/physics.scm index 67193fc18c3..ed616ed14e7 100644 --- a/gnu/packages/physics.scm +++ b/gnu/packages/physics.scm @@ -288,6 +288,54 @@ Laboratory Neutron Catalog. ONCat is a data catalog service for neutron scattering facilities.") (license license:expat))) +(define-public python-pyoncatqt + (package + (name "python-pyoncatqt") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/neutrons/pyoncatqt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wdzff1jn2jv742qm7g728yzp7axgf7nrizm5hms2w796a1zdqwv")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ; tests require mantid + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-version + (lambda _ + ;; versioningit needs git tags; patch pyproject.toml to use + ;; static version and create _version.py directly. + (substitute* "pyproject.toml" + (("dynamic = \\[\"version\"\\]") + (string-append "version = \"" #$version "\"")) + (("source = \"versioningit\"") "") + (("\\[tool\\.hatch\\.build\\.hooks\\.versioningit-onbuild\\]") + "[tool.hatch.build.hooks.versioningit-onbuild] +enable-by-default = false")) + (mkdir-p "src/pyoncatqt") + (call-with-output-file "src/pyoncatqt/_version.py" + (lambda (port) + (format port "__version__ = \"~a\"~%" #$version)))))))) + (native-inputs + (list python-hatchling)) + (propagated-inputs + (list python-oauthlib + python-pyoncat + python-qtpy)) + (home-page "https://github.com/neutrons/pyoncatqt") + (synopsis "Qt GUI elements for ONCat authentication") + (description + "This package provides common Qt GUI elements for authenticating with +ONCat (ORNL Neutron Catalog), including login dialogs and session management +widgets.") + (license license:gpl3))) + (define-public python-pystog (package (name "python-pystog") |
