diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-18 23:09:33 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-20 14:11:37 +0000 |
| commit | 3e8ec45750d5c30a7223ef320980e228f575352f (patch) | |
| tree | 7a46fa2be97f55ca198643e7cd4e4dfbe26a81b1 /guix | |
| parent | adad5ef28140cd3344fc4730dfec639036443412 (diff) | |
guix: lint: Add more native-inputs checks.
* guix/lint.scm (%go-native-inputs, %python-native-inputs): New variables.
(check-inputs-should-be-native): Remove python-cython, python-docutils,
python-mock, python-pynose, python-pbr, python-pytest,
python-setuptools-scm, and python-sphinx; append %go-native-inputs,
%python-native-inputs.
Merges: https://codeberg.org/guix/guix/pulls/7278
Change-Id: I905f4ac656d8fbe25fb77792e23efc581f83dc27
Reviewed-by: Maxim Cournoyer <maxim@guixotic.coop>
Diffstat (limited to 'guix')
| -rw-r--r-- | guix/lint.scm | 45 |
1 files changed, 35 insertions, 10 deletions
diff --git a/guix/lint.scm b/guix/lint.scm index e5191c2dd2..eb8ee7a06d 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -573,13 +573,44 @@ of a package, and INPUT-NAMES, a list of package specifications such as input)))) packages outputs)))) +(define %go-native-inputs + (list "go-github-com-stretchr-testify" + "go-github-com-onsi-ginkgo-v2" + "go-gopkg-in-check-v1" + "go-go-uber-org-mock")) + +(define %python-native-inputs + (list "pybind11" + "python-cython" + "python-docutils" + "python-flit-scm" + "python-hatch-docstring-description" + "python-hatch-fancy-pypi-readme" + "python-hatch-requirements-txt" + "python-hatch-vcs" + "python-hatchling" + "python-hypothesis" + "python-mock" + "python-nose2" + "python-pbr" + "python-pdm-backend" + "python-poetry-core" + "python-pynose" + "python-pypa-build" + "python-pytest" + "python-pytest-mock" + "python-pytest-xdist" + "python-setuptools-scm" + "python-xdoctest")) + (define (check-inputs-should-be-native package) ;; Emit a warning if some inputs of PACKAGE are likely to belong to its ;; native inputs. (let ((inputs (append (package-inputs package) (package-propagated-inputs package))) (input-names - '("pkg-config" + (append + '("pkg-config" "autoconf" "automake" "bison" @@ -603,14 +634,6 @@ of a package, and INPUT-NAMES, a list of package specifications such as "m4" "qttools-5" "yasm" "nasm" "fasm" - "python-cython" - "python-docutils" - "python-mock" - "python-pynose" - "python-pbr" - "python-pytest" - "python-setuptools-scm" - "python-sphinx" "scdoc" "swig" "qmake" @@ -618,7 +641,9 @@ of a package, and INPUT-NAMES, a list of package specifications such as "texinfo" "texlive-local-tree" "xorg-server-for-tests" - "yelp-tools"))) + "yelp-tools") + %go-native-inputs + %python-native-inputs))) (map (lambda (input) (make-warning package |
