1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, click
5, watchdog
6, exifread
7, requests
8, mistune
9, inifile
10, Babel
11, jinja2
12, flask
13, pyopenssl
14, ndg-httpsclient
15, pytestCheckHook
16, pytest-cov
17, pytest-mock
18, pytest-pylint
19, pytest-click
20, isPy27
21, functools32
22, setuptools
23}:
24
25buildPythonPackage rec {
26 pname = "lektor";
27 version = "3.1.3";
28
29 src = fetchFromGitHub {
30 owner = "lektor";
31 repo = "lektor";
32 rev = version;
33 sha256 = "16qw68rz5q77w84lwyhjpfd3bm4mfrhcjrnxwwnz3vmi610h68hx";
34 };
35
36 propagatedBuildInputs = [
37 click watchdog exifread requests mistune inifile Babel jinja2
38 flask pyopenssl ndg-httpsclient setuptools
39 ] ++ lib.optionals isPy27 [ functools32 ];
40
41 checkInputs = [
42 pytestCheckHook pytest-cov pytest-mock pytest-pylint pytest-click
43 ];
44
45 # many errors -- tests assume inside of git repo, linting errors 13/317 fail
46 doCheck = false;
47
48 meta = with lib; {
49 description = "A static content management system";
50 homepage = "https://www.getlektor.com/";
51 license = licenses.bsd0;
52 maintainers = with maintainers; [ costrouc ];
53 };
54
55}