gnu: python-fixtures: Fix test suite.

* gnu/packages/python.scm (python-fixtures, python2-fixtures): Replace 'check'
  with custom phase.
  [native-inputs]: Add python-mock.
This commit is contained in:
Marius Bakke 2016-12-14 10:38:26 +01:00
parent fb08c4fedc
commit f6c1ef1804
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA

View File

@ -2068,10 +2068,18 @@ from git information.
(base32
"0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(zero? (system* "python" "-m" "testtools.run"
"fixtures.test_suite")))))))
(propagated-inputs
`(("python-six" ,python-six)))
(native-inputs
`(("python-pbr-minimal" ,python-pbr-minimal)
`(("python-mock" ,python-mock)
("python-pbr-minimal" ,python-pbr-minimal)
("python-testtools" ,python-testtools)))
(home-page "https://launchpad.net/python-fixtures")
(synopsis "Python test fixture library")