2017-08-28 04:09:23 +01:00
|
|
|
{ stdenv, fetchPypi
|
|
|
|
, buildPythonApplication, python, pythonAtLeast
|
|
|
|
, mock, nose, pyhamcrest
|
|
|
|
, glibcLocales, parse, parse-type, six
|
|
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "behave";
|
2018-02-26 09:55:13 +00:00
|
|
|
version = "1.2.6";
|
2017-08-28 04:09:23 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
disabled = pythonAtLeast "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-26 09:55:13 +00:00
|
|
|
sha256 = "b9662327aa53294c1351b0a9c369093ccec1d21026f050c3bd9b3e5cccf81a86";
|
2017-08-28 04:09:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ mock nose pyhamcrest ];
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
propagatedBuildInputs = [ parse parse-type six ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
|
|
|
|
nosetests -x
|
|
|
|
|
|
|
|
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/
|
|
|
|
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' tools/test-features/
|
|
|
|
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' issue.features/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/behave/behave;
|
|
|
|
description = "behaviour-driven development, Python style";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ alunduil ];
|
|
|
|
};
|
|
|
|
}
|