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