python2.pkgs.aniso8601: add optional mock dependency
This commit is contained in:
parent
e78eae37cb
commit
d3ab656d87
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
, dateutil }:
|
, dateutil, mock, isPy3k }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aniso8601";
|
pname = "aniso8601";
|
||||||
|
@ -13,6 +13,8 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ dateutil ];
|
propagatedBuildInputs = [ dateutil ];
|
||||||
|
|
||||||
|
checkInputs = stdenv.lib.optional (!isPy3k) mock;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1x49k287ky1spv3msc9fwmc7ydyw6rlcr14nslgcmpjfn3pgzh03";
|
sha256 = "1x49k287ky1spv3msc9fwmc7ydyw6rlcr14nslgcmpjfn3pgzh03";
|
||||||
|
|
Loading…
Reference in New Issue