nixpkgs-suyu/pkgs/development/python-modules/Nikola/default.nix

70 lines
1.4 KiB
Nix
Raw Normal View History

2017-05-17 08:19:16 +02:00
{ lib
, buildPythonPackage
, isPy3k
, fetchPypi
, fetchpatch
2017-05-17 08:19:16 +02:00
, doit
, glibcLocales
, pytest
, pytestcov
, mock
2017-05-17 08:19:16 +02:00
, pygments
, pillow
, dateutil
, docutils
, Mako
, unidecode
, lxml
, Yapsy
, PyRSS2Gen
, Logbook
, blinker
, setuptools
, natsort
, requests
, piexif
, markdown
, phpserialize
, jinja2
2018-09-12 10:12:05 +02:00
, Babel
, freezegun
, pyyaml
, toml
, notebook
2019-02-24 17:11:37 +01:00
, ruamel_yaml
2017-05-17 08:19:16 +02:00
}:
buildPythonPackage rec {
pname = "Nikola";
2019-02-24 17:11:37 +01:00
version = "8.0.2";
2017-05-17 08:19:16 +02:00
# 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;
2018-09-12 10:12:05 +02:00
checkInputs = [ pytest pytestcov mock glibcLocales freezegun ];
2017-05-17 08:19:16 +02:00
propagatedBuildInputs = [
pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen
Logbook blinker setuptools natsort requests piexif markdown phpserialize
2019-02-24 17:11:37 +01:00
jinja2 doit Babel pyyaml toml notebook ruamel_yaml
2017-05-17 08:19:16 +02:00
];
src = fetchPypi {
inherit pname version;
2019-02-24 17:11:37 +01:00
sha256 = "1a5y1qriy76hl4yxvbf365b1ggsxybm06mi1pwb5jkgbkwk2gkrf";
};
2018-09-12 10:12:05 +02:00
checkPhase = ''
LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" py.test .
'';
2017-05-17 08:19:16 +02:00
meta = {
homepage = https://getnikola.com/;
2017-05-17 08:19:16 +02:00
description = "A modular, fast, simple, static website and blog generator";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jluttine ];
};
}