1 { lib, stdenv, fetchFromGitHub
2 , buildPythonPackage, python
3 , pytestCheckHook, mock, path, pyhamcrest, pytest-html
5 , colorama, cucumber-tag-expressions, parse, parse-type, six
8 buildPythonPackage rec {
10 version = "1.2.7.dev2";
12 src = fetchFromGitHub {
16 hash = "sha256-B8PUN1Q4UAsDWrHjPZDlpaPjCKjI/pAogCSI+BQnaWs=";
19 checkInputs = [ pytestCheckHook mock path pyhamcrest pytest-html ];
21 # upstream tests are failing, so instead we only check if we can import it
24 pythonImportsCheck = [ "behave" ];
26 buildInputs = [ glibcLocales ];
27 propagatedBuildInputs = [ colorama cucumber-tag-expressions parse parse-type six ];
33 # timing-based test flaky on Darwin
34 # https://github.com/NixOS/nixpkgs/pull/97737#issuecomment-691489824
35 disabledTests = lib.optionals stdenv.isDarwin [ "test_step_decorator_async_run_until_complete" ];
38 export LANG="en_US.UTF-8"
39 export LC_ALL="en_US.UTF-8"
41 ${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/
42 ${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' tools/test-features/
43 ${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' issue.features/
47 homepage = "https://github.com/behave/behave";
48 description = "behaviour-driven development, Python style";
49 license = licenses.bsd2;
50 maintainers = with maintainers; [ alunduil maxxk ];