Files
nixpkgs/pkgs/development/python-modules/freezegun/default.nix
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

47 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
python-dateutil,
pythonAtLeast,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "freezegun";
version = "1.5.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-eYuTcv3U2QfzPotqWLxk5oLZ/6jUlM5g94AZfugfrtE=";
};
build-system = [ setuptools ];
dependencies = [ python-dateutil ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = lib.optionals (pythonAtLeast "3.13") [
# https://github.com/spulec/freezegun/issues/547
"test_method_decorator_works_on_unittest_kwarg_frozen_time"
"test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func"
"test_method_decorator_works_on_unittest_kwarg_hello"
];
pythonImportsCheck = [ "freezegun" ];
meta = with lib; {
description = "Library that allows your Python tests to travel through time";
homepage = "https://github.com/spulec/freezegun";
changelog = "https://github.com/spulec/freezegun/blob/${version}/CHANGELOG";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}