Cyril Roelandt <tipec...@gmail.com> skribis: > * guix/import/pypi.scm (read-wheel-metadata): Read test requirements from the > metadata included in the wheel. > * guix/import/pypi.scm (guess-requirement-from-source): Return an empty list > for test requirements. > * guix/import/pypi.scm (compute-inputs): Return both the runtime requirements > and the test requirements. > * guix/import.pypi.scm (make-pypi-sexp): Compute native inputs. > * tests/pypi.scm ("pypi->guix-package, wheels"): Update accordingly.
[...] > (requirements (if run_requires > (hash-ref (list-ref run_requires > 0) > "requires") > - '()))) > - (map (lambda (r) > - (python->package-name (clean-requirement r))) > - requirements))))) > + '())) > + (test-requirements (if test_requires > + (hash-ref (list-ref > test_requires 0) > + "requires") > + '()))) Maybe for a subsequent patch: these two occurrences could be written as (match test_requires ((head _ ...) (hash-ref head "requires")) (_ '())) LGTM, thanks! Ludo’.