diff --git a/pkgs/development/python-modules/Nikola/default.nix b/pkgs/development/python-modules/Nikola/default.nix new file mode 100644 index 000000000000..503e655e65a1 --- /dev/null +++ b/pkgs/development/python-modules/Nikola/default.nix @@ -0,0 +1,59 @@ +{ lib +, buildPythonPackage +, isPy3k +, fetchPypi +, doit +, glibcLocales +, pytest +, pytestcov +, pytest-mock +, pygments +, pillow +, dateutil +, docutils +, Mako +, unidecode +, lxml +, Yapsy +, PyRSS2Gen +, Logbook +, blinker +, setuptools +, natsort +, requests +, piexif +, markdown +, phpserialize +, jinja2 +}: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "Nikola"; + version = "7.8.4"; + + # Nix contains only Python 3 supported version of doit, which is a dependency + # of Nikola. Python 2 support would require older doit 0.29.0 (which on the + # other hand doesn't support Python 3.3). So, just disable Python 2. + disabled = !isPy3k; + + buildInputs = [ pytest pytestcov pytest-mock glibcLocales ]; + + propagatedBuildInputs = [ + pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen + Logbook blinker setuptools natsort requests piexif markdown phpserialize + jinja2 doit + ]; + + src = fetchPypi { + inherit pname version; + sha256 = "14pd5zk6l6f58snq9n9zpxwhqcc3xz8b1gz31zsrqajggg1i8fn8"; + }; + + meta = { + homepage = "https://getnikola.com/"; + description = "A modular, fast, simple, static website and blog generator"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jluttine ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 48766214b79d..61da03781550 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8198,6 +8198,8 @@ in { netcdf4 = callPackage ../development/python-modules/netcdf4.nix { }; + Nikola = callPackage ../development/python-modules/Nikola { }; + nxt-python = buildPythonPackage rec { version = "unstable-20160819"; pname = "nxt-python";