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