mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 11:00:19 +03:00
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
|
||||
, 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;
|
||||
|
Loading…
Reference in New Issue
Block a user