pythonPackages.hypothesis: fix for python 3.3

This commit is contained in:
Frederik Rietdijk 2017-03-13 14:42:10 +01:00
parent c8c4902ee1
commit 6f90badeac

View File

@ -1,5 +1,5 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, python { stdenv, buildPythonPackage, fetchFromGitHub, python
, isPy27, enum34 , pythonOlder, enum34
, doCheck ? true, pytest, flake8, flaky , doCheck ? true, pytest, flake8, flaky
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -21,7 +21,7 @@ buildPythonPackage rec {
}; };
buildInputs = stdenv.lib.optionals doCheck [ pytest flake8 flaky ]; buildInputs = stdenv.lib.optionals doCheck [ pytest flake8 flaky ];
propagatedBuildInputs = stdenv.lib.optionals isPy27 [ enum34 ]; propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
inherit doCheck; inherit doCheck;