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