2021-01-11 07:54:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
2022-10-02 16:50:37 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
python,
|
2024-08-08 10:22:12 +00:00
|
|
|
pythonOlder,
|
2022-04-12 19:59:32 +00:00
|
|
|
pytestCheckHook,
|
2024-08-08 10:22:12 +00:00
|
|
|
assertpy,
|
2022-04-12 19:59:32 +00:00
|
|
|
mock,
|
|
|
|
path,
|
|
|
|
pyhamcrest,
|
|
|
|
pytest-html,
|
2020-08-21 16:56:54 +00:00
|
|
|
colorama,
|
|
|
|
cucumber-tag-expressions,
|
|
|
|
parse,
|
|
|
|
parse-type,
|
2024-08-08 10:22:12 +00:00
|
|
|
setuptools,
|
2020-08-21 16:56:54 +00:00
|
|
|
six,
|
2017-08-28 03:09:23 +00:00
|
|
|
}:
|
2019-11-28 03:08:50 +00:00
|
|
|
|
2022-10-02 16:50:37 +00:00
|
|
|
buildPythonPackage rec {
|
2017-08-28 03:09:23 +00:00
|
|
|
pname = "behave";
|
2024-08-08 10:22:12 +00:00
|
|
|
version = "1.2.7.dev5";
|
|
|
|
pyproject = true;
|
2017-08-28 03:09:23 +00:00
|
|
|
|
2020-08-21 16:56:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "behave";
|
2024-08-08 10:22:12 +00:00
|
|
|
repo = "behave";
|
2020-08-21 16:56:54 +00:00
|
|
|
rev = "v${version}";
|
2024-08-08 10:22:12 +00:00
|
|
|
hash = "sha256-G1o0a57MRczwjGLl/tEYC+yx3nxpk6+E58RvR9kVJpA=";
|
2017-08-28 03:09:23 +00:00
|
|
|
};
|
|
|
|
|
2024-08-08 10:22:12 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
2024-08-08 10:22:12 +00:00
|
|
|
assertpy
|
2023-01-21 12:00:00 +00:00
|
|
|
mock
|
|
|
|
path
|
|
|
|
pyhamcrest
|
|
|
|
pytest-html
|
|
|
|
];
|
2021-05-11 12:31:28 +00:00
|
|
|
|
2024-08-08 10:22:12 +00:00
|
|
|
doCheck = pythonOlder "3.12";
|
2021-05-11 12:31:28 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "behave" ];
|
|
|
|
|
2024-08-08 10:22:12 +00:00
|
|
|
dependencies = [
|
2020-08-21 16:56:54 +00:00
|
|
|
colorama
|
|
|
|
cucumber-tag-expressions
|
|
|
|
parse
|
|
|
|
parse-type
|
|
|
|
six
|
|
|
|
];
|
2017-08-28 03:09:23 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs bin
|
|
|
|
'';
|
|
|
|
|
2020-09-20 19:44:15 +00:00
|
|
|
# timing-based test flaky on Darwin
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/97737#issuecomment-691489824
|
2024-09-24 15:51:25 +00:00
|
|
|
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
"test_step_decorator_async_run_until_complete"
|
|
|
|
];
|
2017-08-28 03:09:23 +00:00
|
|
|
|
2020-09-20 19:44:15 +00:00
|
|
|
postCheck = ''
|
2017-08-28 03:09:23 +00: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/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-08-08 10:22:12 +00:00
|
|
|
changelog = "https://github.com/behave/behave/blob/${src.rev}/CHANGES.rst";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/behave/behave";
|
2017-08-28 03:09:23 +00:00
|
|
|
description = "behaviour-driven development, Python style";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "behave";
|
2017-08-28 03:09:23 +00:00
|
|
|
license = licenses.bsd2;
|
2020-08-21 16:56:54 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
alunduil
|
|
|
|
maxxk
|
|
|
|
];
|
2017-08-28 03:09:23 +00:00
|
|
|
};
|
|
|
|
}
|