at 24.11-pre 38 lines 849 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 python-dateutil, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "freezegun"; 13 version = "1.4.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-EJObC6D/Wtrs87BqXC9zBx2WeOUHxertsjx2HVasd0s="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 propagatedBuildInputs = [ python-dateutil ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ "freezegun" ]; 30 31 meta = with lib; { 32 description = "Library that allows your Python tests to travel through time"; 33 homepage = "https://github.com/spulec/freezegun"; 34 changelog = "https://github.com/spulec/freezegun/blob/${version}/CHANGELOG"; 35 license = licenses.asl20; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}