python3Packages.Nikola: add mock to checkInputs

mock is no longer in propagatedBuildInputs of pytest-mock for python>2.7
This commit is contained in:
Robert Schütz 2018-02-12 12:46:57 +01:00
parent 804bf3c22a
commit 1674636aa7

View File

@ -7,6 +7,7 @@
, pytest , pytest
, pytestcov , pytestcov
, pytest-mock , pytest-mock
, mock
, pygments , pygments
, pillow , pillow
, dateutil , dateutil
@ -28,7 +29,6 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Nikola"; pname = "Nikola";
version = "7.8.11"; version = "7.8.11";
@ -37,7 +37,7 @@ buildPythonPackage rec {
# other hand doesn't support Python 3.3). So, just disable Python 2. # other hand doesn't support Python 3.3). So, just disable Python 2.
disabled = !isPy3k; disabled = !isPy3k;
buildInputs = [ pytest pytestcov pytest-mock glibcLocales ]; checkInputs = [ pytest pytestcov pytest-mock mock glibcLocales ];
propagatedBuildInputs = [ propagatedBuildInputs = [
pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen