depot/third_party/nixpkgs/pkgs/development/python-modules/lektor/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

84 lines
1.3 KiB
Nix

{ lib
, Babel
, buildPythonPackage
, click
, exifread
, fetchFromGitHub
, filetype
, flask
, inifile
, jinja2
, marshmallow
, marshmallow-dataclass
, mistune
, pip
, pyopenssl
, pytest-click
, pytest-mock
, pytest-pylint
, pytestCheckHook
, pythonOlder
, python-slugify
, requests
, setuptools
, watchdog
, werkzeug
}:
buildPythonPackage rec {
pname = "lektor";
version = "3.3.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "lektor";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-3jPN4VQdIUVjSSGJxPek2RrnXzCwkDxoEBqk4vuL+nc=";
};
propagatedBuildInputs = [
Babel
click
exifread
filetype
flask
inifile
jinja2
marshmallow
marshmallow-dataclass
mistune
pip
pyopenssl
python-slugify
requests
setuptools
watchdog
werkzeug
];
checkInputs = [
pytest-click
pytest-mock
pytest-pylint
pytestCheckHook
];
pythonImportsCheck = [
"lektor"
];
disabledTests = [
# Test requires network access
"test_path_installed_plugin_is_none"
];
meta = with lib; {
description = "A static content management system";
homepage = "https://www.getlektor.com/";
license = licenses.bsd0;
maintainers = with maintainers; [ costrouc ];
};
}