Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 46 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ 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 ]; };}