Skip to content

Commit

Permalink
python311Packages.time-machine: 2.12.0 -> 2.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Nov 21, 2023
1 parent dd9fbe8 commit bc066b5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions pkgs/development/python-modules/time-machine/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,30 @@
, fetchFromGitHub
, pythonAtLeast
, pythonOlder
, setuptools
, backports-zoneinfo
, python-dateutil
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "time-machine";
version = "2.12.0";
format = "setuptools";
version = "2.13.0";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "adamchainz";
repo = pname;
rev = version;
hash = "sha256-vBww78/3vC3IA4Nh9Ne+rBo/CO9FggjP+TUUV2/ih9c=";
hash = "sha256-SjenPLLr4JoWK5HAokwgW+bw3mfAZiuDb1N7Za5wtrw=";
};

nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [
python-dateutil
] ++ lib.optionals (pythonOlder "3.9") [
Expand All @@ -33,6 +38,8 @@ buildPythonPackage rec {
];

disabledTests = lib.optionals (pythonAtLeast "3.9") [
# https://github.com/adamchainz/time-machine/issues/405
"test_destination_string_naive"
# Assertion Errors related to Africa/Addis_Ababa
"test_destination_datetime_tzinfo_zoneinfo_nested"
"test_destination_datetime_tzinfo_zoneinfo_no_orig_tz"
Expand All @@ -45,6 +52,7 @@ buildPythonPackage rec {
];

meta = with lib; {
changelog = "https://github.com/adamchainz/time-machine/blob/${src.rev}/CHANGELOG.rst";
description = "Travel through time in your tests";
homepage = "https://github.com/adamchainz/time-machine";
license = licenses.mit;
Expand Down

0 comments on commit bc066b5

Please sign in to comment.