3
0
Fork 0
forked from mirrors/nixpkgs

python.pkgs.behave: init at 1.2.5

This commit is contained in:
Alex Brandt 2017-08-27 22:09:23 -05:00 committed by Frederik Rietdijk
parent 83dbb41aed
commit 637ccde435
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ stdenv, fetchPypi
, buildPythonApplication, python, pythonAtLeast
, mock, nose, pyhamcrest
, glibcLocales, parse, parse-type, six
}:
buildPythonApplication rec {
pname = "behave";
version = "1.2.5";
name = "${pname}-${version}";
disabled = pythonAtLeast "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "81b731ac5187e31e4aad2594944fa914943683a9818320846d037c5ebd6d5d0b";
};
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 ];
};
}

View file

@ -27575,6 +27575,8 @@ EOF
spacy = callPackage ../development/python-modules/spacy { }; spacy = callPackage ../development/python-modules/spacy { };
behave = callPackage ../development/python-modules/behave { };
pyhamcrest = callPackage ../development/python-modules/pyhamcrest { }; pyhamcrest = callPackage ../development/python-modules/pyhamcrest { };
parse = callPackage ../development/python-modules/parse { }; parse = callPackage ../development/python-modules/parse { };