diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-12 21:14:54 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-13 11:57:29 +0100 |
| commit | d6cf748d564de9186ff796092de933d89768bfcd (patch) | |
| tree | 53408d1894f6a254241dc149f7bbb6484da331f0 /gnu/packages/python-xyz.scm | |
| parent | f8ba50a139146b8379cf7a466ca155cdf3e9c5b0 (diff) | |
gnu: python-pynixutil: Build with python-poetry-core.
* gnu/packages/python-xyz.scm (python-pynixutil)[source] <snippet>: Drop
it and ignore test file in <#:test-flags> instead.
[arguments] <test-flags>: Ignore test file requiring Nix.
<phases>: Add 'use-poetry-core.
[native-inputs]: Remove poetry; add python-poetry-core.
Change-Id: I9691533aaff6e5217fe7497056c2b4cab0cf98f4
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index dccbc4172b1..358fad591e2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29210,20 +29210,31 @@ environments.") (package (name "python-pynixutil") (version "0.5.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/nix-community/pynixutil") - (commit version))) - (file-name (git-file-name name version)) - ;; Derivation test uses nix. - (modules '((guix build utils))) - (snippet '(delete-file "tests/test_drv.py")) - (sha256 - (base32 - "1lnspcai7mqpv73bbd8kgyw63fxwgkwvfkl09b2bl5y2g2v7np6m")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nix-community/pynixutil") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lnspcai7mqpv73bbd8kgyw63fxwgkwvfkl09b2bl5y2g2v7np6m")))) (build-system pyproject-build-system) - (native-inputs (list poetry python-pytest)) + (arguments + (list + #:test-flags + ;; Tests require nix in the PATH. + #~(list "--ignore=tests/test_drv.py") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'use-poetry-core + (lambda _ + ;; Patch to use the core poetry API. + (substitute* "pyproject.toml" + (("poetry.masonry.api") "poetry.core.masonry.api"))))))) + (native-inputs + (list python-poetry-core + python-pytest)) (home-page "https://github.com/nix-community/pynixutil") (synopsis "Utility functions for working with data from Nix in Python") (description |
