@@ -163,14 +163,10 @@ library
(interaction-environment)))
(define* (eval-test-with-cabal test-cabal package-pattern #:key (cabal-environment '()))
- (mock
- ((guix import hackage) hackage-fetch
- (lambda (name-version)
- (call-with-input-string test-cabal
- read-cabal)))
- (match-pattern
- (hackage->guix-package "foo" #:cabal-environment cabal-environment)
- package-pattern)))
+ (define port (open-input-string test-cabal))
+ (match-pattern
+ (hackage->guix-package "foo" #:port port #:cabal-environment cabal-environment)
+ package-pattern))
(define ghc-foo-pattern
'('package