42 lines
913 B
Nix
42 lines
913 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
flask,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-themer";
|
|
version = "2.0.0";
|
|
pyproject = true;
|
|
|
|
# Pypi tarball doesn't contain tests/
|
|
src = fetchFromGitHub {
|
|
owner = "TkTech";
|
|
repo = "flask-themer";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-2Zw+gKKN0kfjYuruuLQ+3dIFF0X07DTy0Ypc22Ih66w=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ flask ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
];
|
|
|
|
pythonImportsCheck = [ "flask_themer" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple theming support for Flask apps";
|
|
homepage = "https://github.com/TkTech/flask-themer";
|
|
changelog = "https://github.com/TkTech/flask-themer/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ erictapen ];
|
|
};
|
|
}
|