mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #25849 from jluttine/add-nikola
nikola: init at 7.8.4
This commit is contained in:
commit
7d954312be
59
pkgs/development/python-modules/Nikola/default.nix
Normal file
59
pkgs/development/python-modules/Nikola/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -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";
|
||||
@ -27897,23 +27899,21 @@ EOF
|
||||
};
|
||||
|
||||
ws4py = buildPythonPackage rec {
|
||||
name = "ws4py-${version}";
|
||||
name = "${pname}-${version}";
|
||||
pname = "ws4py";
|
||||
version = "0.4.2";
|
||||
|
||||
version = "git-20130303";
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://github.com/Lawouach/WebSocket-for-Python.git";
|
||||
rev = "ace276500ca7e4c357595e3773be151d37bcd6e2";
|
||||
sha256 = "1g7nmhjjxjf6vx75dyzns8bpid3b5i02kakk2lh1i297b5rw2rjq";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zr3254ky6r7q15l3dhdczfa8i723055zdkqssjifsgcwvirriks";
|
||||
};
|
||||
|
||||
# python zip complains about old timestamps
|
||||
preConfigure = ''
|
||||
find -print0 | xargs -0 touch
|
||||
'';
|
||||
buildInputs = with self; [ pytest mock ];
|
||||
propagatedBuildInputs = with self; [ asyncio cherrypy gevent tornado ];
|
||||
|
||||
# Tests depend on other packages
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
pytest test
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://ws4py.readthedocs.org;
|
||||
|
Loading…
Reference in New Issue
Block a user