Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
dateparser,
fetchFromGitHub,
freezegun,
humanize,
pendulum,
pytest-mock,
pytestCheckHook,
pythonOlder,
pytz,
setuptools,
snaptime,
tzlocal,
}:
buildPythonPackage rec {
pname = "maya";
version = "0.6.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "timofurrer";
repo = "maya";
tag = "v${version}";
hash = "sha256-4fUyUqVQk/AcQL3xMnU1cQlF5yiD/N9NPAsUPuDTTNY=";
};
postPatch = ''
# function was made private in humanize
substituteInPlace maya/core.py \
--replace-fail "humanize.time.abs_timedelta" "humanize.time._abs_timedelta"
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
dateparser
humanize
pendulum
pytz
snaptime
tzlocal
];
nativeCheckInputs = [
freezegun
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "maya" ];
disabledTests = [
# https://github.com/timofurrer/maya/issues/202
"test_parse_iso8601"
];
meta = with lib; {
description = "Datetimes for Humans";
homepage = "https://github.com/timofurrer/maya";
changelog = "https://github.com/timofurrer/maya/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ ];
};
}