1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flask, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "flask-paginate"; 13 version = "2024.4.12"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "lixxu"; 20 repo = "flask-paginate"; 21 tag = "v${version}"; 22 hash = "sha256-YaAgl+iuoXB0eWVzhmNq2UTOpM/tHfDISIb9CyaXiuA="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ flask ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "flask_paginate" ]; 32 33 enabledTestPaths = [ "tests/tests.py" ]; 34 35 meta = with lib; { 36 description = "Pagination support for Flask"; 37 homepage = "https://github.com/lixxu/flask-paginate"; 38 changelog = "https://github.com/lixxu/flask-paginate/releases/tag/v${version}"; 39 license = licenses.bsd3; 40 maintainers = [ ]; 41 }; 42}