3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/behave/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2017-08-28 04:09:23 +01:00
{ stdenv, fetchPypi
, buildPythonApplication, python, pythonOlder
2018-03-07 17:03:23 +00:00
, mock, nose, pathpy, pyhamcrest, pytest
2017-08-28 04:09:23 +01:00
, glibcLocales, parse, parse-type, six
2018-03-07 17:03:23 +00:00
, traceback2
2017-08-28 04:09:23 +01:00
}:
buildPythonApplication rec {
pname = "behave";
2018-03-07 17:03:23 +00:00
version = "1.2.6";
2017-08-28 04:09:23 +01:00
src = fetchPypi {
inherit pname version;
2018-03-07 17:03:23 +00:00
sha256 = "11hsz365qglvpp1m1w16239c3kiw15lw7adha49lqaakm8kj6rmr";
2017-08-28 04:09:23 +01:00
};
2018-03-07 17:03:23 +00:00
checkInputs = [ mock nose pathpy pyhamcrest pytest ];
2017-08-28 04:09:23 +01:00
buildInputs = [ glibcLocales ];
2018-03-07 17:03:23 +00:00
propagatedBuildInputs = [ parse parse-type six ] ++ stdenv.lib.optional (pythonOlder "3.0") traceback2;
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"
2018-03-07 17:03:23 +00:00
pytest test 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; {
homepage = https://github.com/behave/behave;
description = "behaviour-driven development, Python style";
license = licenses.bsd2;
maintainers = with maintainers; [ alunduil ];
};
}