2019-04-12 14:46:29 +01:00
|
|
|
{ lib
|
2022-04-05 21:56:00 +01:00
|
|
|
, Babel
|
2018-10-15 21:56:42 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, exifread
|
2022-04-05 21:56:00 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, filetype
|
|
|
|
, flask
|
2018-10-15 21:56:42 +01:00
|
|
|
, inifile
|
|
|
|
, jinja2
|
2022-04-05 21:56:00 +01:00
|
|
|
, marshmallow
|
|
|
|
, marshmallow-dataclass
|
|
|
|
, mistune
|
|
|
|
, pip
|
2018-10-15 21:56:42 +01:00
|
|
|
, pyopenssl
|
2022-04-05 21:56:00 +01:00
|
|
|
, pytest-click
|
2019-04-12 14:46:29 +01:00
|
|
|
, pytest-mock
|
|
|
|
, pytest-pylint
|
2022-04-05 21:56:00 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-03-08 02:35:42 +00:00
|
|
|
, python-slugify
|
2022-04-05 21:56:00 +01:00
|
|
|
, requests
|
2020-04-20 22:59:58 +01:00
|
|
|
, setuptools
|
2022-04-05 21:56:00 +01:00
|
|
|
, watchdog
|
|
|
|
, werkzeug
|
2018-10-15 21:56:42 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lektor";
|
2022-04-05 21:11:07 +01:00
|
|
|
version = "3.3.3";
|
2022-03-08 02:35:42 +00:00
|
|
|
format = "pyproject";
|
2018-10-15 21:56:42 +01:00
|
|
|
|
2022-04-05 21:56:00 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2019-04-12 14:46:29 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lektor";
|
2022-04-05 21:56:00 +01:00
|
|
|
repo = pname;
|
2022-04-05 21:11:07 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-04-05 21:56:00 +01:00
|
|
|
hash = "sha256-3jPN4VQdIUVjSSGJxPek2RrnXzCwkDxoEBqk4vuL+nc=";
|
2018-10-15 21:56:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-04-05 21:56:00 +01:00
|
|
|
Babel
|
|
|
|
click
|
|
|
|
exifread
|
|
|
|
filetype
|
|
|
|
flask
|
|
|
|
inifile
|
|
|
|
jinja2
|
|
|
|
marshmallow
|
|
|
|
marshmallow-dataclass
|
|
|
|
mistune
|
|
|
|
pip
|
|
|
|
pyopenssl
|
|
|
|
python-slugify
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
watchdog
|
|
|
|
werkzeug
|
|
|
|
];
|
2019-04-12 14:46:29 +01:00
|
|
|
|
|
|
|
checkInputs = [
|
2022-04-05 21:56:00 +01:00
|
|
|
pytest-click
|
|
|
|
pytest-mock
|
|
|
|
pytest-pylint
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"lektor"
|
2018-10-15 21:56:42 +01:00
|
|
|
];
|
|
|
|
|
2022-04-05 21:56:00 +01:00
|
|
|
disabledTests = [
|
|
|
|
# Test requires network access
|
|
|
|
"test_path_installed_plugin_is_none"
|
|
|
|
];
|
2018-10-15 21:56:42 +01:00
|
|
|
|
2019-04-12 14:46:29 +01:00
|
|
|
meta = with lib; {
|
2018-10-15 21:56:42 +01:00
|
|
|
description = "A static content management system";
|
2022-04-05 21:56:00 +01:00
|
|
|
homepage = "https://www.getlektor.com/";
|
|
|
|
license = licenses.bsd0;
|
2021-08-02 23:55:58 +01:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2018-10-15 21:56:42 +01:00
|
|
|
};
|
|
|
|
}
|