git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #46564 from jluttine/nikola-8.0.0

pythonPackages.Nikola: 7.8.15 -> 8.0.1

commita4c0cdd466a2681c03678ac807e84235e8d3886e authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateSun 21 Oct 2018, 11:01 (8 years ago) parentdc6e4f9f9e7e38
4 files changed+68−26
pkgs/development/python-modules/Logbook/default.nix+26 pkgs/development/python-modules/Nikola/default.nix+13−4 pkgs/development/python-modules/brotli/default.nix+26 pkgs/top-level/python-packages.nix+3−22
pkgs/development/python-modules/Logbook/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }:
2+
3+buildPythonPackage rec {
4+ pname = "Logbook";
5+ version = "1.4.0";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1n8wzm2nc99gbvb44y2fbb59sy3c4awkwfgy4pbwv7z892ykw2iw";
10+ };
11+
12+ checkInputs = [ pytest ] ++ lib.optionals (!isPy3k) [ mock ];
13+
14+ propagatedBuildInputs = [ brotli ];
15+
16+ checkPhase = ''
17+ find tests -name \*.pyc -delete
18+ py.test tests
19+ '';
20+
21+ meta = {
22+ homepage = https://pythonhosted.org/Logbook/;
23+ description = "A logging replacement for Python";
24+ license = lib.licenses.bsd3;
25+ };
26+}
pkgs/development/python-modules/Nikola/default.nix+13−4
@@ -25,30 +25,39 @@
2525, markdown
2626, phpserialize
2727, jinja2
28+, Babel
29+, freezegun
30+, pyyaml
31+, toml
32+, notebook
2833}:
2934
3035buildPythonPackage rec {
3136 pname = "Nikola";
32− version = "7.8.15";
37+ version = "8.0.1";
3338
3439 # Nix contains only Python 3 supported version of doit, which is a dependency
3540 # of Nikola. Python 2 support would require older doit 0.29.0 (which on the
3641 # other hand doesn't support Python 3.3). So, just disable Python 2.
3742 disabled = !isPy3k;
3843
39− checkInputs = [ pytest pytestcov mock glibcLocales ];
44+ checkInputs = [ pytest pytestcov mock glibcLocales freezegun ];
4045
4146 propagatedBuildInputs = [
4247 pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen
4348 Logbook blinker setuptools natsort requests piexif markdown phpserialize
44− jinja2 doit
49+ jinja2 doit Babel pyyaml toml notebook
4550 ];
4651
4752 src = fetchPypi {
4853 inherit pname version;
49− sha256 = "182b4b9254f0d710603ba491853429ad6ef3f955f3e718191336b44cfd649000";
54+ sha256 = "18bq68f9v7xk9ahjl6x4k77yysq5g6g07ng2ndbg35kcsdnw4nk6";
5055 };
5156
57+ checkPhase = ''
58+ LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" py.test .
59+ '';
60+
5261 meta = {
5362 homepage = https://getnikola.com/;
5463 description = "A modular, fast, simple, static website and blog generator";
pkgs/development/python-modules/brotli/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
2+
3+buildPythonPackage rec {
4+ pname = "brotli";
5+ version = "1.0.5";
6+
7+ # PyPI doesn't contain tests so let's use GitHub
8+ src = fetchFromGitHub {
9+ owner = "google";
10+ repo = pname;
11+ rev = "v${version}";
12+ sha256 = "0ssj7mnhpdpk7qnwr49qfd4gxhkmvbli5mhs274pz55cx1xp7xja";
13+ };
14+
15+ checkInputs = [ pytest ];
16+
17+ checkPhase = ''
18+ pytest python/tests
19+ '';
20+
21+ meta = {
22+ homepage = https://github.com/google/brotli;
23+ description = "Generic-purpose lossless compression algorithm";
24+ license = lib.licenses.mit;
25+ };
26+}
pkgs/top-level/python-packages.nix+3−22
@@ -258,6 +258,8 @@ in {
258258
259259 breathe = callPackage ../development/python-modules/breathe { };
260260
261+ brotli = callPackage ../development/python-modules/brotli { };
262+
261263 browser-cookie3 = callPackage ../development/python-modules/browser-cookie3 { };
262264
263265 browsermob-proxy = disabledIf isPy3k (callPackage ../development/python-modules/browsermob-proxy {});
@@ -9315,28 +9317,7 @@ EOF
93159317 };
93169318 };
93179319
9318− Logbook = buildPythonPackage rec {
9319− name = "Logbook-${version}";
9320− version = "1.0.0";
9321−
9322− src = pkgs.fetchurl {
9323− url = "mirror://pypi/L/Logbook/${name}.tar.gz";
9324− sha256 = "0whqbx5p0zkf7gmb5ssnsnhm4kn4drd4x7fbhdi8dnxklqajbnl7";
9325− };
9326−
9327− buildInputs = [ self.pytest ] ++ optionals (!isPy3k) [ self.mock ];
9328−
9329− checkPhase = ''
9330− find tests -name \*.pyc -delete
9331− py.test tests
9332− '';
9333−
9334− meta = {
9335− homepage = https://pythonhosted.org/Logbook/;
9336− description = "A logging replacement for Python";
9337− license = licenses.bsd3;
9338− };
9339− };
9320+ Logbook = callPackage ../development/python-modules/Logbook { };
93409321
93419322 libversion = callPackage ../development/python-modules/libversion {
93429323 inherit (pkgs) libversion;