2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, click
|
|
|
|
, watchdog
|
|
|
|
, exifread
|
|
|
|
, requests
|
|
|
|
, mistune
|
|
|
|
, inifile
|
|
|
|
, Babel
|
|
|
|
, jinja2
|
|
|
|
, flask
|
|
|
|
, pyopenssl
|
|
|
|
, ndg-httpsclient
|
2021-02-17 17:02:09 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytest-pylint
|
|
|
|
, pytest-click
|
|
|
|
, isPy27
|
|
|
|
, functools32
|
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lektor";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "3.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lektor";
|
|
|
|
repo = "lektor";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "04gn3jybqf9wc6l9mi0djpki60adnk7gppmv987ik676k5x8f1kk";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click watchdog exifread requests mistune inifile Babel jinja2
|
|
|
|
flask pyopenssl ndg-httpsclient setuptools
|
|
|
|
] ++ lib.optionals isPy27 [ functools32 ];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-17 17:02:09 +00:00
|
|
|
pytestCheckHook pytest-cov pytest-mock pytest-pylint pytest-click
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# many errors -- tests assume inside of git repo, linting errors 13/317 fail
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A static content management system";
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|