diff --git a/pkgs/development/python-modules/lektor/default.nix b/pkgs/development/python-modules/lektor/default.nix index 918cbd2591c2..020506d51910 100644 --- a/pkgs/development/python-modules/lektor/default.nix +++ b/pkgs/development/python-modules/lektor/default.nix @@ -1,58 +1,84 @@ { lib -, buildPythonPackage -, fetchFromGitHub -, click -, filetype -, watchdog -, exifread -, requests -, mistune -, inifile , Babel -, jinja2 +, buildPythonPackage +, click +, exifread +, fetchFromGitHub +, filetype , flask +, inifile +, jinja2 +, marshmallow +, marshmallow-dataclass +, mistune +, pip , pyopenssl -, ndg-httpsclient -, pytestCheckHook -, pytest-cov +, pytest-click , pytest-mock , pytest-pylint -, pytest-click +, pytestCheckHook +, pythonOlder , python-slugify -, isPy27 -, functools32 +, requests , setuptools +, watchdog +, werkzeug }: buildPythonPackage rec { pname = "lektor"; - version = "3.3.2"; + version = "3.3.3"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "lektor"; - repo = "lektor"; - rev = "v${version}"; - sha256 = "sha256-PNHQ87aO+b1xseupIOsO7MXdr16s0gjoHGnZhPlKKRY="; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-3jPN4VQdIUVjSSGJxPek2RrnXzCwkDxoEBqk4vuL+nc="; }; propagatedBuildInputs = [ - click filetype watchdog exifread requests mistune inifile Babel jinja2 - flask pyopenssl python-slugify ndg-httpsclient setuptools - ] ++ lib.optionals isPy27 [ functools32 ]; - - checkInputs = [ - pytestCheckHook pytest-cov pytest-mock pytest-pylint pytest-click + Babel + click + exifread + filetype + flask + inifile + jinja2 + marshmallow + marshmallow-dataclass + mistune + pip + pyopenssl + python-slugify + requests + setuptools + watchdog + werkzeug ]; - # many errors -- tests assume inside of git repo, linting errors 13/317 fail - doCheck = false; + 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; + homepage = "https://www.getlektor.com/"; + license = licenses.bsd0; maintainers = with maintainers; [ costrouc ]; }; - }