1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 flask,
7 pytestCheckHook,
8 pytest-cov-stub,
9}:
10
11buildPythonPackage rec {
12 pname = "flask-themer";
13 version = "2.0.0";
14 pyproject = true;
15
16 # Pypi tarball doesn't contain tests/
17 src = fetchFromGitHub {
18 owner = "TkTech";
19 repo = "flask-themer";
20 tag = "v${version}";
21 hash = "sha256-2Zw+gKKN0kfjYuruuLQ+3dIFF0X07DTy0Ypc22Ih66w=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ flask ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 pytest-cov-stub
31 ];
32
33 pythonImportsCheck = [ "flask_themer" ];
34
35 meta = with lib; {
36 description = "Simple theming support for Flask apps";
37 homepage = "https://github.com/TkTech/flask-themer";
38 changelog = "https://github.com/TkTech/flask-themer/releases/tag/v${version}";
39 license = licenses.mit;
40 maintainers = with maintainers; [ erictapen ];
41 };
42}