pythonPackages.behave: fix build on Python 2.7

This commit is contained in:
Ben Wolsieffer 2018-12-20 22:02:20 -05:00 committed by Frederik Rietdijk
parent 09eeebad26
commit 306a07f8d4

View File

@ -1,4 +1,4 @@
{ stdenv, fetchPypi
{ stdenv, fetchPypi, fetchpatch
, buildPythonApplication, python, pythonOlder
, mock, nose, pathpy, pyhamcrest, pytest
, glibcLocales, parse, parse-type, six
@ -13,6 +13,14 @@ buildPythonApplication rec {
sha256 = "11hsz365qglvpp1m1w16239c3kiw15lw7adha49lqaakm8kj6rmr";
};
patches = [
# Fix tests on Python 2.7
(fetchpatch {
url = https://github.com/behave/behave/commit/0a9430a94881cd18437deb03d2ae23afea0f009c.patch;
sha256 = "1nrh9ii6ik6gw2kjh8a6jk4mg5yqw3jfjfllbyxardclsab62ydy";
})
];
checkInputs = [ mock nose pathpy pyhamcrest pytest ];
buildInputs = [ glibcLocales ];
propagatedBuildInputs = [ parse parse-type six ] ++ stdenv.lib.optional (pythonOlder "3.0") traceback2;