git.iko.soy/typeable/nixpkgs
on master help sign in
Merge staging at '8d490ca9934d0c01e1e9ade455657e54e2e843c0' into master
commitfc232422201c0364dbd57826c9a137cc1239caea authorFrederik Rietdijk <fridh@fridh.nl> dateMon 26 Feb 2018, 13:05 (9 years ago) parent754816b8d490ca
33 files changed+389−267
pkgs/applications/misc/pytrainer/default.nix+10−6 pkgs/build-support/cc-wrapper/utils.sh+5−1 pkgs/data/misc/poppler-data/default.nix+4−8 pkgs/development/libraries/gnutls/3.6.nix+2−2 pkgs/development/libraries/libatomic_ops/default.nix+2 pkgs/development/libraries/libseccomp/default.nix+2 pkgs/development/libraries/poppler/default.nix+13−32 pkgs/development/libraries/poppler/qt4.nix+44 pkgs/development/python-modules/asgiref/default.nix+15−7 pkgs/development/python-modules/bibtexparser/default.nix+18−7 pkgs/development/python-modules/binaryornot/default.nix+27 pkgs/development/python-modules/cram/default.nix+4−12 pkgs/development/python-modules/curtsies/default.nix+4−4 pkgs/development/python-modules/daphne/default.nix+19−7 pkgs/development/python-modules/dbf/default.nix+6−3 pkgs/development/python-modules/ecpy/default.nix+3−2 pkgs/development/python-modules/faker/default.nix+4−4 pkgs/development/python-modules/green/default.nix+26 pkgs/development/python-modules/konfig/default.nix+48 pkgs/development/python-modules/natsort/default.nix+2−6 pkgs/development/python-modules/networkx/default.nix+4−12 pkgs/development/python-modules/pomegranate/default.nix+4−1 pkgs/development/python-modules/prov/default.nix+15−1 pkgs/development/python-modules/pytest-mock/default.nix+6−1 pkgs/development/python-modules/pytest-xdist/default.nix+2−2 pkgs/development/python-modules/rednose/default.nix+24 pkgs/development/python-modules/termstyle/default.nix+20 pkgs/development/python-modules/text-unidecode/default.nix+23 pkgs/development/python-modules/xdot/default.nix+21 pkgs/development/tools/build-managers/meson/setup-hook.sh+1−1 pkgs/tools/filesystems/e2fsprogs/default.nix+2−2 pkgs/top-level/all-packages.nix+1−4 pkgs/top-level/python-packages.nix+8−142
pkgs/applications/misc/pytrainer/default.nix+10−6
@@ -1,19 +1,19 @@
1−{ stdenv, fetchFromGitHub, perl, python2Packages, sqlite, gpsbabel
1+{ stdenv, fetchFromGitHub, perl, python, sqlite, gpsbabel
22, withWebKit ? false }:
33
44let
55
66 # Pytrainer needs a matplotlib with GTK backend. Also ensure we are
77 # using the pygtk with glade support as needed by pytrainer.
8− matplotlibGtk = python2Packages.matplotlib.override {
8+ matplotlibGtk = python.pkgs.matplotlib.override {
99 enableGtk2 = true;
10− pygtk = python2Packages.pyGtkGlade;
10+ pygtk = python.pkgs.pyGtkGlade;
1111 };
1212
1313in
1414
15−python2Packages.buildPythonApplication rec {
16− name = "pytrainer-${version}";
15+python.pkgs.buildPythonApplication rec {
16+ pname = "pytrainer";
1717 version = "1.11.0";
1818
1919 src = fetchFromGitHub {
@@ -35,7 +35,7 @@ python2Packages.buildPythonApplication rec {
3535 ./pytrainer-webkit.patch
3636 ];
3737
38− propagatedBuildInputs = with python2Packages; [
38+ propagatedBuildInputs = with python.pkgs; [
3939 dateutil lxml matplotlibGtk pyGtkGlade sqlalchemy_migrate
4040 ] ++ stdenv.lib.optional withWebKit [ pywebkitgtk ];
4141
@@ -45,6 +45,10 @@ python2Packages.buildPythonApplication rec {
4545 dontPatchELF = true;
4646 dontStrip = true;
4747
48+ checkPhase = ''
49+ ${python.interpreter} -m unittest discover
50+ '';
51+
4852 meta = with stdenv.lib; {
4953 homepage = https://github.com/pytrainer/pytrainer/wiki;
5054 description = "Application for logging and graphing sporting excursions";
pkgs/build-support/cc-wrapper/utils.sh+5−1
@@ -25,7 +25,11 @@ mangleVarBool() {
2525 for infix in "${role_infixes[@]}"; do
2626 local inputVar="${var/+/${infix}}"
2727 if [ -v "$inputVar" ]; then
28− let "${outputVar} |= ${!inputVar}"
28+ # "1" in the end makes `let` return success error code when
29+ # expression itself evaluates to zero.
30+ # We don't use `|| true` because that would silence actual
31+ # syntax errors from bad variable values.
32+ let "${outputVar} |= ${!inputVar:-0}" "1"
2933 fi
3034 done
3135}
pkgs/data/misc/poppler-data/default.nix+4−8
@@ -1,18 +1,14 @@
1−{ fetchurl, stdenv }:
1+{ fetchurl, stdenv, cmake, ninja }:
22
33stdenv.mkDerivation rec {
4− name = "poppler-data-0.4.7";
4+ name = "poppler-data-0.4.8";
55
66 src = fetchurl {
77 url = "http://poppler.freedesktop.org/${name}.tar.gz";
8− sha256 = "1pm7wg6xqj4sppb5az4pa7psfdk4yxxkw52j85bm9fksibcb0lp7";
8+ sha256 = "0wi8yyynladny51r4q53z7ygh7y491ayp8nqqv6wqqzjc60s35hh";
99 };
1010
11− postPatch = ''
12− sed -i 's,$(datadir)/pkgconfig,$(prefix)/lib/pkgconfig,g' Makefile
13− '';
14−
15− installFlags = [ "prefix=$(out)" ];
11+ nativeBuildInputs = [ cmake ninja ];
1612
1713 meta = with stdenv.lib; {
1814 homepage = https://poppler.freedesktop.org/;
pkgs/development/libraries/gnutls/3.6.nix+2−2
@@ -1,11 +1,11 @@
11{ callPackage, fetchurl, ... } @ args:
22
33callPackage ./generic.nix (args // rec {
4− version = "3.6.1";
4+ version = "3.6.2";
55
66 src = fetchurl {
77 url = "mirror://gnupg/gnutls/v3.6/gnutls-${version}.tar.xz";
8− sha256 = "1vdsir53ddxyapnxh5fpnfyij3scx3818iri4hl07g4lk4n0vc90";
8+ sha256 = "07wdffklwmxpa9i50sh5nwrc5ajb47skrldm6rzjc0jf4dxxpmdw";
99 };
1010
1111 # Skip two tests introduced in 3.5.11. Probable reasons of failure:
pkgs/development/libraries/libatomic_ops/default.nix+2
@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
1212 sha256 ="1rif2hjscq5mh639nsnjhb90c01gnmy1sbmj6x6hsn1xmpnj95r1";
1313 };
1414
15+ outputs = [ "out" "dev" "doc" ];
16+
1517 # https://github.com/ivmai/libatomic_ops/pull/32
1618 patches = if hostPlatform.isRiscV then [ ./riscv.patch ] else null;
1719
pkgs/development/libraries/libseccomp/default.nix+2
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
99 sha256 = "0mdiyfljrkfl50q1m3ws8yfcyfjwf1zgkvcva8ffcwncji18zhkz";
1010 };
1111
12+ outputs = [ "out" "lib" "dev" "man" ];
13+
1214 buildInputs = [ getopt makeWrapper ];
1315
1416 patchPhase = ''
pkgs/development/libraries/poppler/default.nix+13−32
@@ -1,24 +1,22 @@
1−{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, libiconv, libintlOrEmpty
1+{ stdenv, lib, fetchurl, cmake, ninja, pkgconfig, libiconv, libintlOrEmpty
22, zlib, curl, cairo, freetype, fontconfig, lcms, libjpeg, openjpeg
33, withData ? true, poppler_data
4−, qt4Support ? false, qt4 ? null
54, qt5Support ? false, qtbase ? null
65, introspectionSupport ? false, gobjectIntrospection ? null
76, utils ? false
87, minimal ? false, suffix ? "glib"
9−, hostPlatform
108}:
119
1210let # beware: updates often break cups-filters build
13− version = "0.56.0";
14− sha256 = "0wviayidfv2ix2ql0d4nl9r1ia6qi5kc1nybd9vjx27dk7gvm7c6";
11+ version = "0.62.0";
12+ mkFlag = optset: flag: "-DENABLE_${flag}=${if optset then "on" else "off"}";
1513in
1614stdenv.mkDerivation rec {
1715 name = "poppler-${suffix}-${version}";
1816
1917 src = fetchurl {
2018 url = "${meta.homepage}/poppler-${version}.tar.xz";
21− inherit sha256;
19+ sha256 = "1ii9ly1pngyvs0aiq2wxpya08hidpl54y7nsb8b1vxnnskgp76jv";
2220 };
2321
2422 outputs = [ "out" "dev" ];
@@ -29,36 +27,19 @@ stdenv.mkDerivation rec {
2927 propagatedBuildInputs = with lib;
3028 [ zlib freetype fontconfig libjpeg openjpeg ]
3129 ++ optionals (!minimal) [ cairo lcms curl ]
32− ++ optional qt4Support qt4
3330 ++ optional qt5Support qtbase
3431 ++ optional introspectionSupport gobjectIntrospection;
3532
36− nativeBuildInputs = [ pkgconfig ];
33+ nativeBuildInputs = [ cmake ninja pkgconfig ];
3734
38− NIX_CFLAGS_COMPILE = [ "-DQT_NO_DEBUG" ];
39−
40− CXXFLAGS = lib.optional qt5Support "-std=c++11";
41−
42− configureFlags = with lib;
43− [
44− "--enable-xpdf-headers"
45− "--enable-libcurl"
46− "--enable-zlib"
47− "--enable-build-type=release"
48− ]
49− ++ optionals minimal [
50− "--disable-poppler-glib" "--disable-poppler-cpp"
51− "--disable-libcurl"
52− ]
53− ++ optional (!utils) "--disable-utils"
54− ++ optional introspectionSupport "--enable-introspection";
55−
56− enableParallelBuilding = true;
57−
58− crossAttrs.postPatch =
59− # there are tests using `strXXX_s` functions that are missing apparently
60− stdenv.lib.optionalString (hostPlatform.libc or null == "msvcrt")
61− "sed '/^SUBDIRS =/s/ test / /' -i Makefile.in";
35+ cmakeFlags = [
36+ (mkFlag true "XPDF_HEADERS")
37+ (mkFlag (!minimal) "GLIB")
38+ (mkFlag (!minimal) "CPP")
39+ (mkFlag (!minimal) "LIBCURL")
40+ (mkFlag utils "UTILS")
41+ (mkFlag qt5Support "QT5")
42+ ];
6243
6344 meta = with lib; {
6445 homepage = https://poppler.freedesktop.org/;
pkgs/development/libraries/poppler/qt4.nixnew file+44
@@ -0,0 +1,44 @@
1+# TODO: get rid of this (https://github.com/NixOS/nixpkgs/issues/32883)
2+{ stdenv, lib, fetchurl, cmake, ninja, pkgconfig, libiconv, libintlOrEmpty
3+, zlib, curl, cairo, freetype, fontconfig, lcms2, libjpeg, openjpeg
4+, poppler_data, qt4
5+}:
6+
7+let
8+ # Last version supporting QT4
9+ version = "0.61.1";
10+in
11+stdenv.mkDerivation rec {
12+ name = "poppler-qt4-${version}";
13+
14+ src = fetchurl {
15+ url = "${meta.homepage}/poppler-${version}.tar.xz";
16+ sha256 = "1afdrxxkaivvviazxkg5blsf2x24sjkfj92ib0d3q5pm8dihjrhj";
17+ };
18+
19+ outputs = [ "out" "dev" ];
20+
21+ buildInputs = [ libiconv poppler_data ] ++ libintlOrEmpty;
22+
23+ propagatedBuildInputs = [ zlib freetype fontconfig libjpeg openjpeg cairo lcms2 curl qt4 ];
24+
25+ nativeBuildInputs = [ cmake ninja pkgconfig ];
26+
27+ cmakeFlags = [
28+ "-DENABLE_XPDF_HEADERS=on"
29+ "-DENABLE_UTILS=off"
30+ ];
31+
32+ meta = with lib; {
33+ homepage = https://poppler.freedesktop.org/;
34+ description = "A PDF rendering library";
35+
36+ longDescription = ''
37+ Poppler is a PDF rendering library based on the xpdf-3.0 code base.
38+ '';
39+
40+ license = licenses.gpl2;
41+ platforms = platforms.all;
42+ maintainers = with maintainers; [ ttuegel ];
43+ };
44+}
pkgs/development/python-modules/asgiref/default.nix+15−7
@@ -1,15 +1,23 @@
1−{ stdenv, buildPythonPackage, fetchurl, six }:
1+{ stdenv, buildPythonPackage, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
22buildPythonPackage rec {
3− version = "2.1.5";
3+ version = "2.1.6";
44 pname = "asgiref";
5− name = "${pname}-${version}";
65
7− src = fetchurl {
8− url = "mirror://pypi/a/asgiref/${name}.tar.gz";
9− sha256 = "1a46196df28c67e046a54cc537ce5a8f6a59eb68649f54680d7e4fc3b113ab1b";
6+ # PyPI tarball doesn't include tests directory
7+ src = fetchFromGitHub {
8+ owner = "django";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "12p1i2ai03x2hx6b3i7xgicyfi2x11is6pkbdac4jpz7fmbz3zlh";
1012 };
1113
12− propagatedBuildInputs = [ six ];
14+ propagatedBuildInputs = [ async-timeout ];
15+
16+ checkInputs = [ pytest pytest-asyncio ];
17+
18+ checkPhase = ''
19+ py.test
20+ '';
1321
1422 meta = with stdenv.lib; {
1523 description = "Reference ASGI adapters and channel layers";
pkgs/development/python-modules/bibtexparser/default.nix+18−7
@@ -1,20 +1,31 @@
11{ lib
22, buildPythonPackage
3−, fetchPypi
3+, fetchFromGitHub
4+, pyparsing
5+, future
6+, nose
7+, glibcLocales
48}:
59
610buildPythonPackage rec {
711 pname = "bibtexparser";
812 version = "1.0.1";
9− name = "${pname}-${version}";
1013
11− src = fetchPypi {
12− inherit pname version;
13− sha256 = "cc41cdd8332c2bf44b97daf1f135f4f267c3b744c33976655cd270b66f964c0a";
14+ # PyPI tarball does not ship tests
15+ src = fetchFromGitHub {
16+ owner = "sciunto-org";
17+ repo = "python-${pname}";
18+ rev = "v${version}";
19+ sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai";
1420 };
1521
16− # No tests in archive
17− doCheck = false;
22+ propagatedBuildInputs = [ pyparsing future ];
23+
24+ checkInputs = [ nose glibcLocales ];
25+
26+ checkPhase = ''
27+ LC_ALL="en_US.UTF-8" nosetests
28+ '';
1829
1930 meta = {
2031 description = "Bibtex parser for python 2.7 and 3.3 and newer";
pkgs/development/python-modules/binaryornot/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ lib, buildPythonPackage, fetchPypi, chardet, hypothesis }:
2+
3+buildPythonPackage rec {
4+ pname = "binaryornot";
5+ version = "0.4.4";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "359501dfc9d40632edc9fac890e19542db1a287bbcfa58175b66658392018061";
10+ };
11+
12+ prePatch = ''
13+ # See https://github.com/audreyr/binaryornot/issues/40
14+ substituteInPlace tests/test_check.py \
15+ --replace "average_size=512" "average_size=128"
16+ '';
17+
18+ propagatedBuildInputs = [ chardet ];
19+
20+ checkInputs = [ hypothesis ];
21+
22+ meta = with lib; {
23+ homepage = https://github.com/audreyr/binaryornot;
24+ description = "Ultra-lightweight pure Python package to check if a file is binary or text";
25+ license = licenses.bsd3;
26+ };
27+}
pkgs/development/python-modules/cram/default.nix+4−12
@@ -1,11 +1,10 @@
1−{stdenv, lib, buildPythonPackage, fetchPypi, coverage, bash, which, writeText}:
1+{stdenv, lib, buildPythonPackage, fetchPypi, bash, which, writeText}:
22
33buildPythonPackage rec {
4− name = "${pname}-${version}";
54 version = "0.7";
65 pname = "cram";
76
8− buildInputs = [ coverage which ];
7+ checkInputs = [ which ];
98
109 src = fetchPypi {
1110 inherit pname version;
@@ -13,20 +12,13 @@ buildPythonPackage rec {
1312 };
1413
1514 postPatch = ''
15+ patchShebangs scripts/cram
1616 substituteInPlace tests/test.t \
1717 --replace "/bin/bash" "${bash}/bin/bash"
1818 '';
1919
20− # This testing is copied from Makefile. Simply using `make test` doesn't work
21− # because it uses the unpatched `scripts/cram` executable which has a bad
22− # shebang. Also, for some reason, coverage fails on one file so let's just
23− # ignore that one.
2420 checkPhase = ''
25− # scripts/cram tests
26− #COVERAGE=${coverage}/bin/coverage $out/bin/cram tests
27− #${coverage}/bin/coverage report --fail-under=100
28− COVERAGE=coverage $out/bin/cram tests
29− coverage report --fail-under=100 --omit="*/_encoding.py,*/__main__.py"
21+ scripts/cram tests
3022 '';
3123
3224 meta = {
pkgs/development/python-modules/curtsies/default.nix+4−4
@@ -1,4 +1,4 @@
1−{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }:
1+{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, wcwidth, typing }:
22
33buildPythonPackage rec {
44 pname = "curtsies";
@@ -8,12 +8,12 @@ buildPythonPackage rec {
88 sha256 = "89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9";
99 };
1010
11− propagatedBuildInputs = [ blessings wcwidth pyte ];
11+ propagatedBuildInputs = [ blessings wcwidth typing ];
1212
13− checkInputs = [ nose mock pytest ];
13+ checkInputs = [ mock pyte nose ];
1414
1515 checkPhase = ''
16− py.test
16+ nosetests tests
1717 '';
1818
1919 meta = with stdenv.lib; {
pkgs/development/python-modules/daphne/default.nix+19−7
@@ -1,19 +1,31 @@
1−{ stdenv, buildPythonPackage, fetchPypi,
2− asgiref, autobahn, twisted, hypothesis
1+{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub
2+, asgiref, autobahn, twisted, pytestrunner
3+, hypothesis, pytest, pytest-asyncio
34}:
45buildPythonPackage rec {
56 pname = "daphne";
6− name = "${pname}-${version}";
77 version = "2.0.3";
88
9− src = fetchPypi {
10− inherit pname version;
11− sha256 = "bb2075ce35ca00f2e5440cc034dfebd5c00d346de62ea45f099db089b868c31f";
9+ disabled = !isPy3k;
10+
11+ src = fetchFromGitHub {
12+ owner = "django";
13+ repo = pname;
14+ rev = version;
15+ sha256 = "1rdnzpgyk5cnx4xc3c7k11v2x9xpihgjpq14fib80jfpcqggw687";
1216 };
1317
14− buildInputs = [ hypothesis ];
18+ nativeBuildInputs = [ pytestrunner ];
19+
1520 propagatedBuildInputs = [ asgiref autobahn twisted ];
1621
22+ checkInputs = [ hypothesis pytest pytest-asyncio ];
23+
24+ checkPhase = ''
25+ # Other tests fail, seems to be due to filesystem access
26+ py.test -k "test_cli or test_utils"
27+ '';
28+
1729 meta = with stdenv.lib; {
1830 description = "Django ASGI (HTTP/WebSocket) server";
1931 license = licenses.bsd3;
pkgs/development/python-modules/dbf/default.nix+6−3
@@ -1,21 +1,24 @@
1−{ stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k }:
1+{ stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k, pythonOlder, enum34, python }:
22
33buildPythonPackage rec {
44 pname = "dbf";
55 version = "0.96.8";
6− name = "${pname}-${version}";
76
87 src = fetchPypi {
98 inherit pname version;
109 sha256 = "1z8n7s4cka6x9ybh4qpfhj51v2qrk38h2f06npizzhm0hmn6r3v1";
1110 };
1211
13− propagatedBuildInputs = [ aenum ];
12+ propagatedBuildInputs = [ aenum ] ++ stdenv.lib.optional (pythonOlder "3.4") [ enum34 ];
1413
1514 doCheck = !isPy3k;
1615 # tests are not yet ported.
1716 # https://groups.google.com/forum/#!topic/python-dbase/96rx2xmCG4w
1817
18+ checkPhase = ''
19+ ${python.interpreter} dbf/test.py
20+ '';
21+
1922 meta = with stdenv.lib; {
2023 description = "Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
2124 homepage = "https://pypi.python.org/pypi/dbf";
pkgs/development/python-modules/ecpy/default.nix+3−2
@@ -1,12 +1,13 @@
1−{ stdenv, fetchPypi, buildPythonPackage, hidapi
1+{ stdenv, fetchPypi, buildPythonPackage, isPy3k, hidapi
22, pycrypto, pillow, protobuf, future, ecpy
33}:
44
55buildPythonPackage rec {
6− name = "${pname}-${version}";
76 pname = "ECPy";
87 version = "0.8.3";
98
9+ disabled = !isPy3k;
10+
1011 src = fetchPypi {
1112 inherit pname version;
1213 sha256 = "ef3d95419d53368f52fb7d4b883b8df0dfc2dd19a76243422d24981c3e5f27bd";
pkgs/development/python-modules/faker/default.nix+4−4
@@ -1,6 +1,6 @@
11{ lib, buildPythonPackage, fetchPypi, pythonOlder,
22 # Build inputs
3− dateutil, six, ipaddress ? null,
3+ dateutil, six, text-unidecode, ipaddress ? null,
44 # Test inputs
55 email_validator, nose, mock, ukpostcodeparser }:
66
@@ -8,12 +8,11 @@ assert pythonOlder "3.3" -> ipaddress != null;
88
99buildPythonPackage rec {
1010 pname = "Faker";
11− version = "0.8.8";
12− name = "${pname}-${version}";
11+ version = "0.8.11";
1312
1413 src = fetchPypi {
1514 inherit pname version;
16− sha256 = "e928cf853ef69d7471421f2a3716a1239e43de0fa9855f4016ee0c9f1057328a";
15+ sha256 = "126kdy6lj10rwgchzz0lzjabx0zcyskamhn0qib67k69fcksjmq8";
1716 };
1817
1918 checkInputs = [
@@ -26,6 +25,7 @@ buildPythonPackage rec {
2625 propagatedBuildInputs = [
2726 dateutil
2827 six
28+ text-unidecode
2929 ] ++ lib.optional (pythonOlder "3.3") ipaddress;
3030
3131 meta = with lib; {
pkgs/development/python-modules/green/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ lib, buildPythonPackage, fetchPypi, isPy3k, colorama, coverage, termstyle, unidecode, mock, backports_shutil_get_terminal_size }:
2+
3+buildPythonPackage rec {
4+ pname = "green";
5+ version = "2.12.0";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "8cdd2934eff754c9664f373ee0d77cb1cb35dbbf3b719b8ae3b059718db875df";
10+ };
11+
12+ prePatch = ''
13+ # See https://github.com/CleanCut/green/pull/182
14+ substituteInPlace setup.py --replace python-termstyle termstyle
15+ '';
16+
17+ propagatedBuildInputs = [
18+ colorama coverage termstyle unidecode
19+ ] ++ lib.optionals (!isPy3k) [ mock backports_shutil_get_terminal_size ];
20+
21+ meta = with lib; {
22+ description = "Python test runner";
23+ homepage = https://github.com/CleanCut/green;
24+ license = licenses.mit;
25+ };
26+}
pkgs/development/python-modules/konfig/default.nixnew file+48
@@ -0,0 +1,48 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, writeText, configparser, six, pytest, glibcLocales }:
2+
3+buildPythonPackage rec {
4+ pname = "konfig";
5+ version = "1.1";
6+
7+ # konfig unconditionaly depend on configparser, even if it is part of
8+ # the standard library in python 3.2 or above.
9+ disabled = isPy3k;
10+
11+ # PyPI tarball is missing utf8.ini, required for tests
12+ src = fetchFromGitHub {
13+ owner = "mozilla-services";
14+ repo = pname;
15+ rev = version;
16+ sha256 = "1h780fbrv275dcik4cs3rincza805z6q726b48r4a0qmh5d8160c";
17+ };
18+
19+ propagatedBuildInputs = [ configparser six ];
20+
21+ patches = [ (writeText "konfig.patch" ''
22+ diff --git a/setup.py b/setup.py
23+ index 96fd858..bb4db06 100644
24+ --- a/setup.py
25+ +++ b/setup.py
26+ @@ -20,7 +20,7 @@ setup(name='konfig',
27+ author_email="tarek@mozilla.com",
28+ include_package_data=True,
29+ install_requires = [
30+ - 'configparser', 'argparse', 'six'
31+ + 'configparser', 'six'
32+ ],
33+ zip_safe=False,
34+ classifiers=classifiers,
35+ '') ];
36+
37+ checkInputs = [ pytest glibcLocales ];
38+
39+ checkPhase = ''
40+ LC_ALL=en_US.utf8 pytest -v konfig/tests
41+ '';
42+
43+ meta = with lib; {
44+ description = "Yet Another Config Parser";
45+ homepage = "https://github.com/mozilla-services/konfig";
46+ license = licenses.mpl20;
47+ };
48+}
pkgs/development/python-modules/natsort/default.nix+2−6
@@ -1,12 +1,9 @@
11{ lib
22, buildPythonPackage
33, pythonOlder
4−, isPy35
5−, isPy36
64, fetchPypi
75, hypothesis
86, pytestcache
9−, pytestcov
107, pytestflakes
118, pytestpep8
129, pytest
@@ -19,10 +16,9 @@ buildPythonPackage rec {
1916 pname = "natsort";
2017 version = "5.2.0";
2118
22− buildInputs = [
19+ checkInputs = [
2320 hypothesis
2421 pytestcache
25− pytestcov
2622 pytestflakes
2723 pytestpep8
2824 pytest
@@ -41,7 +37,7 @@ buildPythonPackage rec {
4137 # testing based on project's tox.ini
4238 checkPhase = ''
4339 pytest --doctest-modules natsort
44− pytest --flakes --pep8 --cov natsort --cov-report term-missing
40+ pytest --flakes --pep8
4541 '';
4642
4743 meta = {
pkgs/development/python-modules/networkx/default.nix+4−12
@@ -3,32 +3,24 @@
33, fetchPypi
44, nose
55, decorator
6−, isPy36
7−, isPyPy
86}:
97
108buildPythonPackage rec {
119 pname = "networkx";
12− version = "1.11";
13−
14− # Currently broken on PyPy.
15− # https://github.com/networkx/networkx/pull/1361
16− disabled = isPyPy;
10+ version = "2.1";
1711
1812 src = fetchPypi {
1913 inherit pname version;
20− sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
14+ extension = "zip";
15+ sha256 = "64272ca418972b70a196cb15d9c85a5a6041f09a2f32e0d30c0255f25d458bb1";
2116 };
2217
2318 checkInputs = [ nose ];
2419 propagatedBuildInputs = [ decorator ];
2520
26− # 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299
27− doCheck = !(isPy36);
28−
2921 meta = {
3022 homepage = "https://networkx.github.io/";
3123 description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
3224 license = lib.licenses.bsd3;
3325 };
34−}
26+}
pkgs/development/python-modules/pomegranate/default.nix+4−1
@@ -3,7 +3,6 @@
33buildPythonPackage rec {
44 pname = "pomegranate";
55 version = "0.8.1";
6− name = "${pname}-${version}";
76
87 src = fetchFromGitHub {
98 repo = pname;
@@ -21,5 +20,9 @@ buildPythonPackage rec {
2120 homepage = https://github.com/jmschrei/pomegranate;
2221 license = licenses.mit;
2322 maintainers = with maintainers; [ rybern ];
23+
24+ # "pomegranate does not yet work with networkx 2.0"
25+ # see https://github.com/jmschrei/pomegranate/issues/209
26+ broken = true;
2427 };
2528}
pkgs/development/python-modules/prov/default.nix+15−1
@@ -7,6 +7,8 @@
77, six
88, pydotplus
99, rdflib
10+, pydot
11+, glibcLocales
1012}:
1113
1214buildPythonPackage rec {
@@ -18,6 +20,10 @@ buildPythonPackage rec {
1820 sha256 = "640dc158d931403bc6c1a0ad80702caae71f810bac21f90ec605865c8444b7bb";
1921 };
2022
23+ prePatch = ''
24+ substituteInPlace setup.py --replace "six==1.10.0" "six>=1.10.0"
25+ '';
26+
2127 propagatedBuildInputs = [
2228 lxml
2329 networkx
@@ -26,7 +32,15 @@ buildPythonPackage rec {
2632 pydotplus
2733 rdflib
2834 ];
29− doCheck = false; # takes ~60 mins
35+
36+ checkInputs = [
37+ pydot
38+ glibcLocales
39+ ];
40+
41+ preCheck = ''
42+ export LC_ALL="en_US.utf-8"
43+ '';
3044
3145 meta = with stdenv.lib; {
3246 description = "A Python library for W3C Provenance Data Model (PROV)";
pkgs/development/python-modules/pytest-mock/default.nix+6−1
@@ -1,4 +1,4 @@
1−{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, setuptools_scm }:
1+{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k, pytest, mock, setuptools_scm }:
22
33buildPythonPackage rec {
44 pname = "pytest-mock";
@@ -9,6 +9,11 @@ buildPythonPackage rec {
99 sha256 = "8ed6c9ac6b7565b226b4da2da48876c9198d76401ec8d9c5e4c69b45423e33f8";
1010 };
1111
12+ patches = fetchpatch {
13+ url = "${meta.homepage}/pull/107.patch";
14+ sha256 = "07p7ra6lilfv04wyxc855zmfwxvnpmi9s0v6vh5bx769cj9jwxck";
15+ };
16+
1217 propagatedBuildInputs = [ pytest ] ++ lib.optional (!isPy3k) mock;
1318 nativeBuildInputs = [ setuptools_scm ];
1419
pkgs/development/python-modules/pytest-xdist/default.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "pytest-xdist";
5− version = "1.22.0";
5+ version = "1.22.1";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "65228a859191f2c74ee68c127317eefe35eedd3d43fc1431f19240663b0cafcd";
9+ sha256 = "fcd6f36bab93b0b24ec45ca12f798b9b3af71da826db0b0794b358d2f5c038de";
1010 };
1111
1212 nativeBuildInputs = [ setuptools_scm ];
pkgs/development/python-modules/rednose/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ lib, buildPythonPackage, fetchPypi, nose, six, colorama, termstyle }:
2+
3+buildPythonPackage rec {
4+ pname = "rednose";
5+ version = "1.3.0";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "6da77917788be277b70259edc0bb92fc6f28fe268b765b4ea88206cc3543a3e1";
10+ };
11+
12+ prePatch = ''
13+ substituteInPlace setup.py --replace "six==1.10.0" "six>=1.10.0"
14+ '';
15+
16+ checkInputs = [ six ];
17+ propagatedBuildInputs = [ nose colorama termstyle ];
18+
19+ meta = with lib; {
20+ description = "A python nose plugin adding color to console results";
21+ homepage = https://github.com/JBKahn/rednose;
22+ license = licenses.mit;
23+ };
24+}
pkgs/development/python-modules/termstyle/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ lib, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "termstyle";
5+ version = "0.1.11";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "ef74b83698ea014112040cf32b1a093c1ab3d91c4dd18ecc03ec178fd99c9f9f";
10+ };
11+
12+ # Only manual tests
13+ doCheck = false;
14+
15+ meta = with lib; {
16+ description = "Console colouring for python";
17+ homepage = "https://pypi.python.org/pypi/python-termstyle/0.1.10";
18+ license = licenses.bsdOriginal;
19+ };
20+}
pkgs/development/python-modules/text-unidecode/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ lib, buildPythonPackage, fetchPypi, pytest }:
2+
3+buildPythonPackage rec {
4+ pname = "text-unidecode";
5+ version = "1.1";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1l081m1w8ibbx684ca71ibdy68iwqsivy6rf6yqvysdclzldbbyh";
10+ };
11+
12+ checkInputs = [ pytest ];
13+
14+ checkPhase = ''
15+ py.test
16+ '';
17+
18+ meta = with lib; {
19+ description = "The most basic Text::Unidecode port";
20+ homepage = https://github.com/kmike/text-unidecode;
21+ license = licenses.artistic1;
22+ };
23+}
pkgs/development/python-modules/xdot/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ lib, buildPythonPackage, fetchPypi
2+, wrapGAppsHook, gobjectIntrospection, pygobject3, graphviz, gnome3 }:
3+
4+buildPythonPackage rec {
5+ pname = "xdot";
6+ version = "0.9";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "01v9vmgdxz1q2m2vq2b4aqx4ycw7grc0l4is673ygvyg9rk02dx3";
11+ };
12+
13+ nativeBuildInputs = [ wrapGAppsHook ];
14+ propagatedBuildInputs = [ gobjectIntrospection pygobject3 graphviz gnome3.gtk ];
15+
16+ meta = with lib; {
17+ description = "xdot.py is an interactive viewer for graphs written in Graphviz's dot";
18+ homepage = https://github.com/jrfonseca/xdot.py;
19+ license = licenses.lgpl3Plus;
20+ };
21+}
pkgs/development/tools/build-managers/meson/setup-hook.sh+1−1
@@ -29,7 +29,7 @@ fi
2929mesonCheckPhase() {
3030 runHook preCheck
3131
32− meson test
32+ meson test --print-errorlogs
3333
3434 runHook postCheck
3535}
pkgs/tools/filesystems/e2fsprogs/default.nix+2−2
@@ -1,11 +1,11 @@
11{ stdenv, buildPackages, fetchurl, pkgconfig, libuuid, gettext, texinfo }:
22
33stdenv.mkDerivation rec {
4− name = "e2fsprogs-1.43.8";
4+ name = "e2fsprogs-1.43.9";
55
66 src = fetchurl {
77 url = "mirror://sourceforge/e2fsprogs/${name}.tar.gz";
8− sha256 = "1pn33rap3lcjm3gx07pmgyhx4j634gja63phmi4g5dq8yj0z8ciz";
8+ sha256 = "15rqvkzylqqckshfy7vmk15k7wds2rh3k1pwrkrs684p3g0gzq2v";
99 };
1010
1111 outputs = [ "bin" "dev" "out" "man" "info" ];
pkgs/top-level/all-packages.nix+1−4
@@ -10797,10 +10797,7 @@ with pkgs;
1079710797 suffix = "min";
1079810798 };
1079910799
10800− poppler_qt4 = poppler.override {
10801− qt4Support = true;
10802− suffix = "qt4";
10803− };
10800+ poppler_qt4 = callPackage ../development/libraries/poppler/qt4.nix { };
1080410801
1080510802 poppler_utils = poppler.override { suffix = "utils"; utils = true; };
1080610803
pkgs/top-level/python-packages.nix+8−142
@@ -1673,27 +1673,7 @@ in {
16731673 };
16741674 };
16751675
1676−
1677− binaryornot = buildPythonPackage rec {
1678− name = "binaryornot-${version}";
1679− version = "0.4.0";
1680−
1681− src = pkgs.fetchurl {
1682− url ="mirror://pypi/b/binaryornot/${name}.tar.gz";
1683− sha256 = "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb";
1684− };
1685−
1686− buildInputs = with self; [ hypothesis ];
1687−
1688− propagatedBuildInputs = with self; [ chardet ];
1689−
1690− meta = {
1691− homepage = https://github.com/audreyr/binaryornot;
1692− description = "Ultra-lightweight pure Python package to check if a file is binary or text";
1693− license = licenses.bsd3;
1694− };
1695− };
1696−
1676+ binaryornot = callPackage ../development/python-modules/binaryornot { };
16971677
16981678 bitbucket_api = buildPythonPackage rec {
16991679 name = "bitbucket-api-0.4.4";
@@ -9218,44 +9198,7 @@ in {
92189198 };
92199199 };
92209200
9221− konfig = buildPythonPackage rec {
9222− name = "konfig-${version}";
9223− version = "1.1";
9224−
9225− # konfig unconditionaly depend on configparser, even if it is part of
9226− # the standard library in python 3.2 or above.
9227− disabled = isPy3k;
9228−
9229− src = pkgs.fetchgit {
9230− url = https://github.com/mozilla-services/konfig.git;
9231− rev = "refs/tags/${version}";
9232− sha256 = "1h780fbrv275dcik4cs3rincza805z6q726b48r4a0qmh5d8160c";
9233− };
9234−
9235− propagatedBuildInputs = with self; [ configparser six ];
9236−
9237− patches = [ (pkgs.writeText "konfig.patch" ''
9238− diff --git a/setup.py b/setup.py
9239− index 96fd858..bb4db06 100644
9240− --- a/setup.py
9241− +++ b/setup.py
9242− @@ -20,7 +20,7 @@ setup(name='konfig',
9243− author_email="tarek@mozilla.com",
9244− include_package_data=True,
9245− install_requires = [
9246− - 'configparser', 'argparse', 'six'
9247− + 'configparser', 'six'
9248− ],
9249− zip_safe=False,
9250− classifiers=classifiers,
9251− '') ];
9252−
9253− meta = {
9254− description = "Yet Another Config Parser";
9255− homepage = "https://github.com/mozilla-services/konfig";
9256− license = licenses.mpl20;
9257− };
9258− };
9201+ konfig = callPackage ../development/python-modules/konfig { };
92599202
92609203 kitchen = callPackage ../development/python-modules/kitchen/default.nix { };
92619204
@@ -10631,24 +10574,6 @@ in {
1063110574
1063210575 mysql-connector = callPackage ../development/python-modules/mysql-connector { };
1063310576
10634− mysql_connector_repackaged = buildPythonPackage rec {
10635− name = "mysql-connector-repackaged-0.3.1";
10636−
10637− src = pkgs.fetchurl {
10638− url = "mirror://pypi/m/mysql-connector-repackaged/${name}.tar.gz";
10639− sha256 = "170fbf11c54def1b5fcc919be0a890b760bb2eca81f56123a5dda0c69b5b099e";
10640− };
10641−
10642− # Judging from SyntaxError
10643− disabled = isPy3k;
10644−
10645− meta = {
10646− maintainers = with maintainers; [ garbas domenkozar ];
10647− platforms = platforms.linux;
10648− };
10649− };
10650−
10651−
1065210577 namebench = buildPythonPackage (rec {
1065310578 name = "namebench-1.3.1";
1065410579 disabled = isPy3k || isPyPy;
@@ -14808,22 +14733,7 @@ in {
1480814733
1480914734 redis = callPackage ../development/python-modules/redis { };
1481014735
14811− rednose = buildPythonPackage rec {
14812− name = "rednose-${version}";
14813− version = "1.2.1";
14814−
14815− src = pkgs.fetchurl {
14816− url = "mirror://pypi/r/rednose/${name}.tar.gz";
14817− sha256 = "0b0bsna217lr1nykyhl5fgjly15zhdvqd4prg4wy1zrgfv7al6m0";
14818− };
14819−
14820− meta = {
14821− description = "A python nose plugin adding color to console results.";
14822− };
14823−
14824− buildInputs = with self; [ nose six ];
14825− propagatedBuildInputs = with self; [ colorama termstyle ];
14826− };
14736+ rednose = callPackage ../development/python-modules/rednose { };
1482714737
1482814738 reikna = callPackage ../development/python-modules/reikna { };
1482914739
@@ -15768,6 +15678,8 @@ in {
1576815678
1576915679 stevedore = callPackage ../development/python-modules/stevedore {};
1577015680
15681+ text-unidecode = callPackage ../development/python-modules/text-unidecode { };
15682+
1577115683 Theano = callPackage ../development/python-modules/Theano rec {
1577215684 cudaSupport = pkgs.config.cudaSupport or false;
1577315685 cudnnSupport = cudaSupport;
@@ -18049,23 +17961,7 @@ EOF
1804917961
1805017962 persistent = callPackage ../development/python-modules/persistent {};
1805117963
18052− xdot = buildPythonPackage rec {
18053− name = "xdot-0.9";
18054−
18055− src = pkgs.fetchurl {
18056− url = "mirror://pypi/x/xdot/${name}.tar.gz";
18057− sha256 = "01v9vmgdxz1q2m2vq2b4aqx4ycw7grc0l4is673ygvyg9rk02dx3";
18058− };
18059−
18060− nativeBuildInputs = with pkgs; [ wrapGAppsHook ];
18061− propagatedBuildInputs = with self; [ pkgs.gobjectIntrospection pygobject3 pkgs.graphviz pkgs.gnome3.gtk ];
18062−
18063− meta = {
18064− description = "xdot.py is an interactive viewer for graphs written in Graphviz's dot";
18065− homepage = https://github.com/jrfonseca/xdot.py;
18066− license = licenses.lgpl3Plus;
18067− };
18068− };
17964+ xdot = callPackage ../development/python-modules/xdot { };
1806917965
1807017966 zetup = callPackage ../development/python-modules/zetup { };
1807117967
@@ -20673,39 +20569,9 @@ EOF
2067320569 };
2067420570 };
2067520571
20676− termstyle = buildPythonPackage rec {
20677− name = "python-termstyle-${version}";
20678− version = "0.1.10";
20679− src = pkgs.fetchurl {
20680− url = "mirror://pypi/p/python-termstyle/${name}.tar.gz";
20681− sha256 = "1qllzkx1alf14zcfapppf8w87si4cpa7lgjmdp3f5idzdyqnnapl";
20682− };
20683−
20684− meta = {
20685− description = "Console colouring for python";
20686− homepage = "https://pypi.python.org/pypi/python-termstyle/0.1.10";
20687− license = licenses.bsdOriginal;
20688− };
20689−
20690− };
20691−
20692− green = buildPythonPackage rec {
20693− name = "green-${version}";
20694− version = "2.3.0";
20695− src = pkgs.fetchurl {
20696− url = "mirror://pypi/g/green/${name}.tar.gz";
20697− sha256 = "1888khfl9yxb8yfxq9b48dxwplqlxx8s0l530z5j7c6bx74v08b4";
20698− };
20699−
20700− propagatedBuildInputs = with self; [ termstyle colorama ];
20701− buildInputs = with self; [ mock ];
20572+ termstyle = callPackage ../development/python-modules/termstyle { };
2070220573
20703− meta = {
20704− description = "Python test runner";
20705− homepage = "https://github.com/CleanCut/green";
20706− license = licenses.mit;
20707− };
20708− };
20574+ green = callPackage ../development/python-modules/green { };
2070920575
2071020576 topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22
2071120577