2019-04-12 13:46:29 +00:00
|
|
|
{ lib
|
2018-10-15 20:56:42 +00:00
|
|
|
, buildPythonPackage
|
2019-04-12 13:46:29 +00:00
|
|
|
, fetchFromGitHub
|
2018-10-15 20:56:42 +00:00
|
|
|
, click
|
|
|
|
, watchdog
|
|
|
|
, exifread
|
|
|
|
, requests
|
|
|
|
, mistune
|
|
|
|
, inifile
|
|
|
|
, Babel
|
|
|
|
, jinja2
|
|
|
|
, flask
|
|
|
|
, pyopenssl
|
|
|
|
, ndg-httpsclient
|
2021-02-16 22:17:59 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-cov
|
2019-04-12 13:46:29 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytest-pylint
|
|
|
|
, pytest-click
|
|
|
|
, isPy27
|
|
|
|
, functools32
|
2020-04-20 21:59:58 +00:00
|
|
|
, setuptools
|
2018-10-15 20:56:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lektor";
|
2019-04-12 13:46:29 +00:00
|
|
|
version = "3.1.3";
|
2018-10-15 20:56:42 +00:00
|
|
|
|
2019-04-12 13:46:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lektor";
|
|
|
|
repo = "lektor";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "16qw68rz5q77w84lwyhjpfd3bm4mfrhcjrnxwwnz3vmi610h68hx";
|
2018-10-15 20:56:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click watchdog exifread requests mistune inifile Babel jinja2
|
2020-04-20 21:59:58 +00:00
|
|
|
flask pyopenssl ndg-httpsclient setuptools
|
2019-04-12 13:46:29 +00:00
|
|
|
] ++ lib.optionals isPy27 [ functools32 ];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-16 22:17:59 +00:00
|
|
|
pytestCheckHook pytest-cov pytest-mock pytest-pylint pytest-click
|
2018-10-15 20:56:42 +00:00
|
|
|
];
|
|
|
|
|
2019-04-12 13:46:29 +00:00
|
|
|
# many errors -- tests assume inside of git repo, linting errors 13/317 fail
|
2018-10-15 20:56:42 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-04-12 13:46:29 +00:00
|
|
|
meta = with lib; {
|
2018-10-15 20:56:42 +00:00
|
|
|
description = "A static content management system";
|
|
|
|
homepage = "https://www.getlektor.com/";
|
|
|
|
license = licenses.bsd0;
|
2019-04-12 13:46:29 +00:00
|
|
|
maintainers = with maintainers; [ vozz costrouc ];
|
2018-10-15 20:56:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|