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

56 lines
1.1 KiB
Nix
Raw Normal View History

2019-04-12 13:46:29 +00:00
{ lib
, buildPythonPackage
2019-04-12 13:46:29 +00:00
, fetchFromGitHub
, click
, watchdog
, exifread
, requests
, mistune
, inifile
, Babel
, jinja2
, flask
, pyopenssl
, ndg-httpsclient
, pytestCheckHook
, pytest-cov
2019-04-12 13:46:29 +00:00
, pytest-mock
, pytest-pylint
, pytest-click
, isPy27
, functools32
, setuptools
}:
buildPythonPackage rec {
pname = "lektor";
2019-04-12 13:46:29 +00:00
version = "3.1.3";
2019-04-12 13:46:29 +00: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 13:46:29 +00:00
] ++ lib.optionals isPy27 [ functools32 ];
checkInputs = [
pytestCheckHook pytest-cov pytest-mock pytest-pylint pytest-click
];
2019-04-12 13:46:29 +00:00
# many errors -- tests assume inside of git repo, linting errors 13/317 fail
doCheck = false;
2019-04-12 13:46:29 +00:00
meta = with lib; {
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 ];
};
}