Merge pull request #333206 from dotlambda/python3Packages.behave

python312Packages.behave: 1.2.7.dev2 -> 1.2.7.dev5
This commit is contained in:
Robert Schütz 2024-08-09 08:40:26 -07:00 committed by GitHub
commit 6d36ae650b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,46 +4,49 @@
fetchFromGitHub,
buildPythonPackage,
python,
pythonOlder,
pytestCheckHook,
assertpy,
mock,
path,
pyhamcrest,
pytest-html,
glibcLocales,
colorama,
cucumber-tag-expressions,
parse,
parse-type,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "behave";
version = "1.2.7.dev2";
format = "setuptools";
version = "1.2.7.dev5";
pyproject = true;
src = fetchFromGitHub {
owner = "behave";
repo = pname;
repo = "behave";
rev = "v${version}";
hash = "sha256-B8PUN1Q4UAsDWrHjPZDlpaPjCKjI/pAogCSI+BQnaWs=";
hash = "sha256-G1o0a57MRczwjGLl/tEYC+yx3nxpk6+E58RvR9kVJpA=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
assertpy
mock
path
pyhamcrest
pytest-html
];
# upstream tests are failing, so instead we only check if we can import it
doCheck = false;
doCheck = pythonOlder "3.12";
pythonImportsCheck = [ "behave" ];
buildInputs = [ glibcLocales ];
propagatedBuildInputs = [
dependencies = [
colorama
cucumber-tag-expressions
parse
@ -60,15 +63,13 @@ buildPythonPackage rec {
disabledTests = lib.optionals stdenv.isDarwin [ "test_step_decorator_async_run_until_complete" ];
postCheck = ''
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
${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 lib; {
changelog = "https://github.com/behave/behave/blob/${src.rev}/CHANGES.rst";
homepage = "https://github.com/behave/behave";
description = "behaviour-driven development, Python style";
mainProgram = "behave";