pythonPackages.behave: fix build on Python 2.7
This commit is contained in:
parent
09eeebad26
commit
306a07f8d4
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchPypi
|
{ stdenv, fetchPypi, fetchpatch
|
||||||
, buildPythonApplication, python, pythonOlder
|
, buildPythonApplication, python, pythonOlder
|
||||||
, mock, nose, pathpy, pyhamcrest, pytest
|
, mock, nose, pathpy, pyhamcrest, pytest
|
||||||
, glibcLocales, parse, parse-type, six
|
, glibcLocales, parse, parse-type, six
|
||||||
@ -13,6 +13,14 @@ buildPythonApplication rec {
|
|||||||
sha256 = "11hsz365qglvpp1m1w16239c3kiw15lw7adha49lqaakm8kj6rmr";
|
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 ];
|
checkInputs = [ mock nose pathpy pyhamcrest pytest ];
|
||||||
buildInputs = [ glibcLocales ];
|
buildInputs = [ glibcLocales ];
|
||||||
propagatedBuildInputs = [ parse parse-type six ] ++ stdenv.lib.optional (pythonOlder "3.0") traceback2;
|
propagatedBuildInputs = [ parse parse-type six ] ++ stdenv.lib.optional (pythonOlder "3.0") traceback2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user