02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
83 lines
1.3 KiB
Nix
83 lines
1.3 KiB
Nix
{ lib
|
|
, babel
|
|
, buildPythonPackage
|
|
, click
|
|
, exifread
|
|
, fetchFromGitHub
|
|
, filetype
|
|
, flask
|
|
, inifile
|
|
, jinja2
|
|
, marshmallow
|
|
, marshmallow-dataclass
|
|
, mistune
|
|
, pip
|
|
, pyopenssl
|
|
, pytest-click
|
|
, pytest-mock
|
|
, pytest-pylint
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, python-slugify
|
|
, requests
|
|
, setuptools
|
|
, watchdog
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lektor";
|
|
version = "3.3.5";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lektor";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-i3SuvRREuq0EENDtXjQegdmz30RmH1HVqBwdjq/mkTM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
babel
|
|
click
|
|
exifread
|
|
filetype
|
|
flask
|
|
inifile
|
|
jinja2
|
|
marshmallow
|
|
marshmallow-dataclass
|
|
mistune
|
|
pip
|
|
pyopenssl
|
|
python-slugify
|
|
requests
|
|
setuptools
|
|
watchdog
|
|
werkzeug
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-click
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"lektor"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test requires network access
|
|
"test_path_installed_plugin_is_none"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A static content management system";
|
|
homepage = "https://www.getlektor.com/";
|
|
license = licenses.bsd0;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|