diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 2065ca41fb7a05808fed97dda35c7654d5d68b7e..344042ea872eb416c3124c4881f9bfe4c80aed75 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1432,8 +1432,9 @@ (define-public beancount
        ("python-lxml" ,python-lxml)
        ("python-magic" ,python-magic)
        ("python-ply" ,python-ply)
-       ("python-pytest" ,python-pytest)
        ("python-requests" ,python-requests)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
     (home-page "http://furius.ca/beancount")
     (synopsis "Command-line double-entry accounting tool")
     (description