diff --git a/pkgs/development/python-modules/time-machine/default.nix b/pkgs/development/python-modules/time-machine/default.nix index 505c5927bd26..af3c2c6546a9 100644 --- a/pkgs/development/python-modules/time-machine/default.nix +++ b/pkgs/development/python-modules/time-machine/default.nix @@ -5,19 +5,20 @@ setuptools, python-dateutil, tokenize-rt, + freezegun, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "time-machine"; - version = "2.19.0"; + version = "3.2.0"; pyproject = true; src = fetchFromGitHub { owner = "adamchainz"; repo = "time-machine"; - tag = version; - hash = "sha256-bPpn+RNlvy/tkFrxDY4Q13fNlNuMFj1+br8M2uU3t9A="; + tag = finalAttrs.version; + hash = "sha256-UWoKvNz0ojVZtkIUGT02zJitza+mkyToANQMsU64xL4="; }; build-system = [ setuptools ]; @@ -31,9 +32,10 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + freezegun pytestCheckHook ] - ++ optional-dependencies.cli; + ++ finalAttrs.passthru.optional-dependencies.cli; disabledTests = [ # https://github.com/adamchainz/time-machine/issues/405 @@ -50,8 +52,8 @@ buildPythonPackage rec { meta = { description = "Travel through time in your tests"; homepage = "https://github.com/adamchainz/time-machine"; - changelog = "https://github.com/adamchainz/time-machine/blob/${src.rev}/CHANGELOG.rst"; + changelog = "https://github.com/adamchainz/time-machine/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})