Fabian Affolter
2024-10-13 11:09:50 +02:00
committed by Martin Weinelt
parent 40791043c2
commit 2188725eba
@@ -5,30 +5,29 @@
pythonAtLeast,
pythonOlder,
setuptools,
backports-zoneinfo,
python-dateutil,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "time-machine";
version = "2.14.2";
version = "2.15.0";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "adamchainz";
repo = pname;
rev = version;
hash = "sha256-u5RxNv+hsL+0yxtiWeYHtmMQY7bvb8WY7ipouj+IZJ8=";
repo = "time-machine";
rev = "refs/tags/${version}";
hash = "sha256-0WYmkrMMeCkBYxy2qGovdxftzrYW9x/3tdeBcYC47Z0=";
};
build-system = [ setuptools ];
dependencies = [
python-dateutil
] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ];
];
nativeCheckInputs = [ pytestCheckHook ];
@@ -45,9 +44,9 @@ buildPythonPackage rec {
pythonImportsCheck = [ "time_machine" ];
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";
changelog = "https://github.com/adamchainz/time-machine/blob/${src.rev}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};