Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / flask-paginate / default.nix
blobf28579e04a46d9b2cf03e7878538442d43ccfe6c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flask
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "flask-paginate";
11   version = "2023.10.24";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "lixxu";
18     repo = "flask-paginate";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-9633YLHMF9S1DLK7ZS4qmCOzslXdHLSgpKoJFNvkXlA=";
21   };
23   propagatedBuildInputs = [
24     flask
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "flask_paginate"
33   ];
35   pytestFlagsArray = [
36     "tests/tests.py"
37   ];
39   meta = with lib; {
40     description = "Pagination support for Flask";
41     homepage = "https://github.com/lixxu/flask-paginate";
42     changelog = "https://github.com/lixxu/flask-paginate/releases/tag/v${version}";
43     license = licenses.bsd3;
44     maintainers = with maintainers; [ ];
45   };