nixpkgs/pkgs/development/python-modules/behave/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

85 lines
1.7 KiB
Nix
Raw Normal View History

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