2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, exifread
|
2022-04-15 01:41:22 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, filetype
|
|
|
|
, flask
|
2020-04-24 23:36:52 +00:00
|
|
|
, inifile
|
|
|
|
, jinja2
|
2022-04-15 01:41:22 +00:00
|
|
|
, marshmallow
|
|
|
|
, marshmallow-dataclass
|
|
|
|
, mistune
|
|
|
|
, pip
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyopenssl
|
2022-04-15 01:41:22 +00:00
|
|
|
, pytest-click
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytest-pylint
|
2022-04-15 01:41:22 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, python-slugify
|
|
|
|
, requests
|
2020-04-24 23:36:52 +00:00
|
|
|
, setuptools
|
2022-04-15 01:41:22 +00:00
|
|
|
, watchdog
|
|
|
|
, werkzeug
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lektor";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "3.3.4";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lektor";
|
2022-04-15 01:41:22 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-9Zd+N6FkvRuW7rptWAr3JLIARXwJDcocxAp/ZCTQ3Hw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2022-04-15 01:41:22 +00:00
|
|
|
click
|
|
|
|
exifread
|
|
|
|
filetype
|
|
|
|
flask
|
|
|
|
inifile
|
|
|
|
jinja2
|
|
|
|
marshmallow
|
|
|
|
marshmallow-dataclass
|
|
|
|
mistune
|
|
|
|
pip
|
|
|
|
pyopenssl
|
|
|
|
python-slugify
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
watchdog
|
|
|
|
werkzeug
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
2022-04-15 01:41:22 +00:00
|
|
|
pytest-click
|
|
|
|
pytest-mock
|
|
|
|
pytest-pylint
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"lektor"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test requires network access
|
|
|
|
"test_path_installed_plugin_is_none"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A static content management system";
|
2022-04-15 01:41:22 +00:00
|
|
|
homepage = "https://www.getlektor.com/";
|
|
|
|
license = licenses.bsd0;
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|