2020-08-21 17:56:54 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, buildPythonApplication, python
|
|
|
|
, mock, pathpy, pyhamcrest, pytest, pytest-html
|
|
|
|
, glibcLocales
|
|
|
|
, colorama, cucumber-tag-expressions, parse, parse-type, six
|
2017-08-28 04:09:23 +01:00
|
|
|
}:
|
2019-11-28 03:08:50 +00:00
|
|
|
|
2017-08-28 04:09:23 +01:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "behave";
|
2020-08-21 17:56:54 +01:00
|
|
|
version = "1.2.7.dev1";
|
2017-08-28 04:09:23 +01:00
|
|
|
|
2020-08-21 17:56:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "behave";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ssgixmqlg8sxsyalr83a1970njc2wg3zl8idsmxnsljwacv7qwv";
|
2017-08-28 04:09:23 +01:00
|
|
|
};
|
|
|
|
|
2020-08-21 17:56:54 +01:00
|
|
|
checkInputs = [ mock pathpy pyhamcrest pytest pytest-html ];
|
2017-08-28 04:09:23 +01:00
|
|
|
buildInputs = [ glibcLocales ];
|
2020-08-21 17:56:54 +01:00
|
|
|
propagatedBuildInputs = [ colorama cucumber-tag-expressions parse parse-type six ];
|
2017-08-28 04:09:23 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
|
2020-08-21 17:56:54 +01:00
|
|
|
pytest tests
|
2017-08-28 04:09:23 +01:00
|
|
|
|
|
|
|
${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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/behave/behave";
|
2017-08-28 04:09:23 +01:00
|
|
|
description = "behaviour-driven development, Python style";
|
|
|
|
license = licenses.bsd2;
|
2020-08-21 17:56:54 +01:00
|
|
|
maintainers = with maintainers; [ alunduil maxxk ];
|
2017-08-28 04:09:23 +01:00
|
|
|
};
|
|
|
|
}
|