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