From ef54727795f3500b7b816fa2b81173a37631ecdc Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Wed, 17 May 2017 09:19:16 +0300 Subject: [PATCH 1/2] pythonPackages.Nikola: init at 7.8.4 --- .../python-modules/Nikola/default.nix | 59 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 61 insertions(+) create mode 100644 pkgs/development/python-modules/Nikola/default.nix diff --git a/pkgs/development/python-modules/Nikola/default.nix b/pkgs/development/python-modules/Nikola/default.nix new file mode 100644 index 00000000000..503e655e65a --- /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 48766214b79..61da0378155 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"; From a50b61f4fa17861685a0af50baf78bf2bd7c7a07 Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Wed, 17 May 2017 22:52:09 +0300 Subject: [PATCH 2/2] pythonPackages.ws4py: git-20130303 -> 0.4.2 --- pkgs/top-level/python-packages.nix | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 61da0378155..6c87495eca4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -27899,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;