Merge pull request #297653 from fabaff/maya-fix

python312Packages.maya: disable failing tests

authored by Fabian Affolter and committed by GitHub 72e1c81d 1b54a5cb

+26 -16
+26 -16
pkgs/development/python-modules/maya/default.nix
··· 1 { lib 2 - , fetchFromGitHub 3 , buildPythonPackage 4 - 5 - # build-system 6 - , setuptools 7 - 8 - # dependencies 9 , dateparser 10 , humanize 11 - , tzlocal 12 , pendulum 13 - , snaptime 14 , pytz 15 - 16 - # tests 17 - , freezegun 18 - , pytestCheckHook 19 }: 20 21 buildPythonPackage rec { 22 pname = "maya"; 23 version = "0.6.1"; 24 - format = "pyproject"; 25 26 src = fetchFromGitHub { 27 - owner = "kennethreitz"; 28 repo = "maya"; 29 rev = "refs/tags/v${version}"; 30 hash = "sha256-4fUyUqVQk/AcQL3xMnU1cQlF5yiD/N9NPAsUPuDTTNY="; ··· 33 postPatch = '' 34 # function was made private in humanize 35 substituteInPlace maya/core.py \ 36 - --replace "humanize.time.abs_timedelta" "humanize.time._abs_timedelta" 37 ''; 38 39 nativeBuildInputs = [ ··· 51 52 nativeCheckInputs = [ 53 freezegun 54 pytestCheckHook 55 ]; 56 57 meta = with lib; { 58 description = "Datetimes for Humans"; 59 - homepage = "https://github.com/kennethreitz/maya"; 60 license = licenses.mit; 61 }; 62 }
··· 1 { lib 2 , buildPythonPackage 3 , dateparser 4 + , fetchFromGitHub 5 + , freezegun 6 , humanize 7 , pendulum 8 + , pytest-mock 9 + , pytestCheckHook 10 + , pythonOlder 11 , pytz 12 + , setuptools 13 + , snaptime 14 + , tzlocal 15 }: 16 17 buildPythonPackage rec { 18 pname = "maya"; 19 version = "0.6.1"; 20 + pyproject = true; 21 + 22 + disabled = pythonOlder "3.7"; 23 24 src = fetchFromGitHub { 25 + owner = "timofurrer"; 26 repo = "maya"; 27 rev = "refs/tags/v${version}"; 28 hash = "sha256-4fUyUqVQk/AcQL3xMnU1cQlF5yiD/N9NPAsUPuDTTNY="; ··· 31 postPatch = '' 32 # function was made private in humanize 33 substituteInPlace maya/core.py \ 34 + --replace-fail "humanize.time.abs_timedelta" "humanize.time._abs_timedelta" 35 ''; 36 37 nativeBuildInputs = [ ··· 49 50 nativeCheckInputs = [ 51 freezegun 52 + pytest-mock 53 pytestCheckHook 54 ]; 55 56 + pythonImportsCheck = [ 57 + "maya" 58 + ]; 59 + 60 + disabledTests = [ 61 + # https://github.com/timofurrer/maya/issues/202 62 + "test_parse_iso8601" 63 + ]; 64 + 65 meta = with lib; { 66 description = "Datetimes for Humans"; 67 + homepage = "https://github.com/timofurrer/maya"; 68 + changelog = "https://github.com/timofurrer/maya/releases/tag/v${version}"; 69 license = licenses.mit; 70 + maintainers = with maintainers; [ ]; 71 }; 72 }