From 22df654ef9d023e8b6c1f0602df233b4b4bf0b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 8 Aug 2024 03:22:12 -0700 Subject: [PATCH] python312Packages.behave: 1.2.7.dev2 -> 1.2.7.dev5 Diff: https://github.com/behave/behave/compare/v1.2.7.dev2...v1.2.7.dev5 Changelog: https://github.com/behave/behave/blob/v1.2.7.dev5/CHANGES.rst --- .../python-modules/behave/default.nix | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/behave/default.nix b/pkgs/development/python-modules/behave/default.nix index 21b6d7b69260..e7a9de7f1bc0 100644 --- a/pkgs/development/python-modules/behave/default.nix +++ b/pkgs/development/python-modules/behave/default.nix @@ -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";