nixpkgs/pkgs/development/python-modules/lektor/default.nix

60 lines
1.1 KiB
Nix
Raw Normal View History

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