nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 43 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 python-dateutil, 7 pythonAtLeast, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "freezegun"; 13 version = "1.5.5"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-rHdCpsxsJaLDXpKS39VUuJe1F9LewmiRoujevyBcuUo="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ python-dateutil ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 disabledTests = lib.optionals (pythonAtLeast "3.13") [ 28 # https://github.com/spulec/freezegun/issues/547 29 "test_method_decorator_works_on_unittest_kwarg_frozen_time" 30 "test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func" 31 "test_method_decorator_works_on_unittest_kwarg_hello" 32 ]; 33 34 pythonImportsCheck = [ "freezegun" ]; 35 36 meta = { 37 description = "Library that allows your Python tests to travel through time"; 38 homepage = "https://github.com/spulec/freezegun"; 39 changelog = "https://github.com/spulec/freezegun/blob/${version}/CHANGELOG"; 40 license = lib.licenses.asl20; 41 maintainers = with lib.maintainers; [ fab ]; 42 }; 43}