Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4735185fc515
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7d954312beaf
Choose a head ref
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on May 27, 2017

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jluttine Jaakko Luttinen
    Copy the full SHA
    ef54727 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jluttine Jaakko Luttinen
    Copy the full SHA
    a50b61f View commit details
  3. Merge pull request #25849 from jluttine/add-nikola

    nikola: init at 7.8.4
    FRidh authored May 27, 2017
    Copy the full SHA
    7d95431 View commit details
Showing with 72 additions and 13 deletions.
  1. +59 −0 pkgs/development/python-modules/Nikola/default.nix
  2. +13 −13 pkgs/top-level/python-packages.nix
59 changes: 59 additions & 0 deletions pkgs/development/python-modules/Nikola/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
26 changes: 13 additions & 13 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -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}";

version = "git-20130303";
name = "${pname}-${version}";
pname = "ws4py";
version = "0.4.2";

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;