diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm index 935ecd33d0..4af02dd250 100644 --- a/guix/import/pypi.scm +++ b/guix/import/pypi.scm @@ -283,7 +283,8 @@ (define (section-header? line) (let ((line (read-line port))) (cond ((eof-object? line) - (list required-deps test-deps)) + (list (reverse required-deps) + (reverse test-deps))) ((or (string-null? line) (comment? line)) (loop required-deps test-deps inside-test-section? optional?)) ((section-header? line) @@ -337,7 +338,8 @@ (define (test-requirement? line) (let ((line (read-line port))) (cond ((eof-object? line) - (list required-deps test-deps)) + (list (reverse required-deps) + (reverse test-deps))) ((and (requires-dist-header? line) (not (extra? line))) (loop (cons (specification->requirement-name (requires-dist-value line))