Files
nixpkgs/pkgs/development/python-modules/freezegun/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}