Revert "Merge staging at '8d490ca9934d0' into master"

This reverts commit fc232422201c0364dbd57826c9a137cc1239caea, reversing
changes made to 754816b84b98afdc0727e13dd66e1698b097de6a.
We don't have many binaries yet. Comment on the original merge commit.

+267 -389
+6 -10
pkgs/applications/misc/pytrainer/default.nix
··· 1 - { stdenv, fetchFromGitHub, perl, python, sqlite, gpsbabel 1 + { stdenv, fetchFromGitHub, perl, python2Packages, sqlite, gpsbabel 2 2 , withWebKit ? false }: 3 3 4 4 let 5 5 6 6 # Pytrainer needs a matplotlib with GTK backend. Also ensure we are 7 7 # using the pygtk with glade support as needed by pytrainer. 8 - matplotlibGtk = python.pkgs.matplotlib.override { 8 + matplotlibGtk = python2Packages.matplotlib.override { 9 9 enableGtk2 = true; 10 - pygtk = python.pkgs.pyGtkGlade; 10 + pygtk = python2Packages.pyGtkGlade; 11 11 }; 12 12 13 13 in 14 14 15 - python.pkgs.buildPythonApplication rec { 16 - pname = "pytrainer"; 15 + python2Packages.buildPythonApplication rec { 16 + name = "pytrainer-${version}"; 17 17 version = "1.11.0"; 18 18 19 19 src = fetchFromGitHub { ··· 35 35 ./pytrainer-webkit.patch 36 36 ]; 37 37 38 - propagatedBuildInputs = with python.pkgs; [ 38 + propagatedBuildInputs = with python2Packages; [ 39 39 dateutil lxml matplotlibGtk pyGtkGlade sqlalchemy_migrate 40 40 ] ++ stdenv.lib.optional withWebKit [ pywebkitgtk ]; 41 41 ··· 44 44 # This package contains no binaries to patch or strip. 45 45 dontPatchELF = true; 46 46 dontStrip = true; 47 - 48 - checkPhase = '' 49 - ${python.interpreter} -m unittest discover 50 - ''; 51 47 52 48 meta = with stdenv.lib; { 53 49 homepage = https://github.com/pytrainer/pytrainer/wiki;
+1 -5
pkgs/build-support/cc-wrapper/utils.sh
··· 25 25 for infix in "${role_infixes[@]}"; do 26 26 local inputVar="${var/+/${infix}}" 27 27 if [ -v "$inputVar" ]; then 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" 28 + let "${outputVar} |= ${!inputVar}" 33 29 fi 34 30 done 35 31 }
+8 -4
pkgs/data/misc/poppler-data/default.nix
··· 1 - { fetchurl, stdenv, cmake, ninja }: 1 + { fetchurl, stdenv }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "poppler-data-0.4.8"; 4 + name = "poppler-data-0.4.7"; 5 5 6 6 src = fetchurl { 7 7 url = "http://poppler.freedesktop.org/${name}.tar.gz"; 8 - sha256 = "0wi8yyynladny51r4q53z7ygh7y491ayp8nqqv6wqqzjc60s35hh"; 8 + sha256 = "1pm7wg6xqj4sppb5az4pa7psfdk4yxxkw52j85bm9fksibcb0lp7"; 9 9 }; 10 10 11 - nativeBuildInputs = [ cmake ninja ]; 11 + postPatch = '' 12 + sed -i 's,$(datadir)/pkgconfig,$(prefix)/lib/pkgconfig,g' Makefile 13 + ''; 14 + 15 + installFlags = [ "prefix=$(out)" ]; 12 16 13 17 meta = with stdenv.lib; { 14 18 homepage = https://poppler.freedesktop.org/;
+2 -2
pkgs/development/libraries/gnutls/3.6.nix
··· 1 1 { callPackage, fetchurl, ... } @ args: 2 2 3 3 callPackage ./generic.nix (args // rec { 4 - version = "3.6.2"; 4 + version = "3.6.1"; 5 5 6 6 src = fetchurl { 7 7 url = "mirror://gnupg/gnutls/v3.6/gnutls-${version}.tar.xz"; 8 - sha256 = "07wdffklwmxpa9i50sh5nwrc5ajb47skrldm6rzjc0jf4dxxpmdw"; 8 + sha256 = "1vdsir53ddxyapnxh5fpnfyij3scx3818iri4hl07g4lk4n0vc90"; 9 9 }; 10 10 11 11 # Skip two tests introduced in 3.5.11. Probable reasons of failure:
-2
pkgs/development/libraries/libatomic_ops/default.nix
··· 12 12 sha256 ="1rif2hjscq5mh639nsnjhb90c01gnmy1sbmj6x6hsn1xmpnj95r1"; 13 13 }; 14 14 15 - outputs = [ "out" "dev" "doc" ]; 16 - 17 15 # https://github.com/ivmai/libatomic_ops/pull/32 18 16 patches = if hostPlatform.isRiscV then [ ./riscv.patch ] else null; 19 17
-2
pkgs/development/libraries/libseccomp/default.nix
··· 9 9 sha256 = "0mdiyfljrkfl50q1m3ws8yfcyfjwf1zgkvcva8ffcwncji18zhkz"; 10 10 }; 11 11 12 - outputs = [ "out" "lib" "dev" "man" ]; 13 - 14 12 buildInputs = [ getopt makeWrapper ]; 15 13 16 14 patchPhase = ''
+32 -13
pkgs/development/libraries/poppler/default.nix
··· 1 - { stdenv, lib, fetchurl, cmake, ninja, pkgconfig, libiconv, libintlOrEmpty 1 + { stdenv, lib, fetchurl, fetchpatch, pkgconfig, libiconv, libintlOrEmpty 2 2 , zlib, curl, cairo, freetype, fontconfig, lcms, libjpeg, openjpeg 3 3 , withData ? true, poppler_data 4 + , qt4Support ? false, qt4 ? null 4 5 , qt5Support ? false, qtbase ? null 5 6 , introspectionSupport ? false, gobjectIntrospection ? null 6 7 , utils ? false 7 8 , minimal ? false, suffix ? "glib" 9 + , hostPlatform 8 10 }: 9 11 10 12 let # beware: updates often break cups-filters build 11 - version = "0.62.0"; 12 - mkFlag = optset: flag: "-DENABLE_${flag}=${if optset then "on" else "off"}"; 13 + version = "0.56.0"; 14 + sha256 = "0wviayidfv2ix2ql0d4nl9r1ia6qi5kc1nybd9vjx27dk7gvm7c6"; 13 15 in 14 16 stdenv.mkDerivation rec { 15 17 name = "poppler-${suffix}-${version}"; 16 18 17 19 src = fetchurl { 18 20 url = "${meta.homepage}/poppler-${version}.tar.xz"; 19 - sha256 = "1ii9ly1pngyvs0aiq2wxpya08hidpl54y7nsb8b1vxnnskgp76jv"; 21 + inherit sha256; 20 22 }; 21 23 22 24 outputs = [ "out" "dev" ]; ··· 27 29 propagatedBuildInputs = with lib; 28 30 [ zlib freetype fontconfig libjpeg openjpeg ] 29 31 ++ optionals (!minimal) [ cairo lcms curl ] 32 + ++ optional qt4Support qt4 30 33 ++ optional qt5Support qtbase 31 34 ++ optional introspectionSupport gobjectIntrospection; 32 35 33 - nativeBuildInputs = [ cmake ninja pkgconfig ]; 36 + nativeBuildInputs = [ pkgconfig ]; 37 + 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"; 34 55 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 - ]; 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"; 43 62 44 63 meta = with lib; { 45 64 homepage = https://poppler.freedesktop.org/;
-44
pkgs/development/libraries/poppler/qt4.nix
··· 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 - }
+7 -15
pkgs/development/python-modules/asgiref/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }: 1 + { stdenv, buildPythonPackage, fetchurl, six }: 2 2 buildPythonPackage rec { 3 - version = "2.1.6"; 3 + version = "2.1.5"; 4 4 pname = "asgiref"; 5 + name = "${pname}-${version}"; 5 6 6 - # PyPI tarball doesn't include tests directory 7 - src = fetchFromGitHub { 8 - owner = "django"; 9 - repo = pname; 10 - rev = version; 11 - sha256 = "12p1i2ai03x2hx6b3i7xgicyfi2x11is6pkbdac4jpz7fmbz3zlh"; 7 + src = fetchurl { 8 + url = "mirror://pypi/a/asgiref/${name}.tar.gz"; 9 + sha256 = "1a46196df28c67e046a54cc537ce5a8f6a59eb68649f54680d7e4fc3b113ab1b"; 12 10 }; 13 11 14 - propagatedBuildInputs = [ async-timeout ]; 15 - 16 - checkInputs = [ pytest pytest-asyncio ]; 17 - 18 - checkPhase = '' 19 - py.test 20 - ''; 12 + propagatedBuildInputs = [ six ]; 21 13 22 14 meta = with stdenv.lib; { 23 15 description = "Reference ASGI adapters and channel layers";
+7 -18
pkgs/development/python-modules/bibtexparser/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchFromGitHub 4 - , pyparsing 5 - , future 6 - , nose 7 - , glibcLocales 3 + , fetchPypi 8 4 }: 9 5 10 6 buildPythonPackage rec { 11 7 pname = "bibtexparser"; 12 8 version = "1.0.1"; 9 + name = "${pname}-${version}"; 13 10 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"; 11 + src = fetchPypi { 12 + inherit pname version; 13 + sha256 = "cc41cdd8332c2bf44b97daf1f135f4f267c3b744c33976655cd270b66f964c0a"; 20 14 }; 21 15 22 - propagatedBuildInputs = [ pyparsing future ]; 23 - 24 - checkInputs = [ nose glibcLocales ]; 25 - 26 - checkPhase = '' 27 - LC_ALL="en_US.UTF-8" nosetests 28 - ''; 16 + # No tests in archive 17 + doCheck = false; 29 18 30 19 meta = { 31 20 description = "Bibtex parser for python 2.7 and 3.3 and newer";
-27
pkgs/development/python-modules/binaryornot/default.nix
··· 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 - }
+12 -4
pkgs/development/python-modules/cram/default.nix
··· 1 - {stdenv, lib, buildPythonPackage, fetchPypi, bash, which, writeText}: 1 + {stdenv, lib, buildPythonPackage, fetchPypi, coverage, bash, which, writeText}: 2 2 3 3 buildPythonPackage rec { 4 + name = "${pname}-${version}"; 4 5 version = "0.7"; 5 6 pname = "cram"; 6 7 7 - checkInputs = [ which ]; 8 + buildInputs = [ coverage which ]; 8 9 9 10 src = fetchPypi { 10 11 inherit pname version; ··· 12 13 }; 13 14 14 15 postPatch = '' 15 - patchShebangs scripts/cram 16 16 substituteInPlace tests/test.t \ 17 17 --replace "/bin/bash" "${bash}/bin/bash" 18 18 ''; 19 19 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. 20 24 checkPhase = '' 21 - scripts/cram tests 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" 22 30 ''; 23 31 24 32 meta = {
+4 -4
pkgs/development/python-modules/curtsies/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, wcwidth, typing }: 1 + { stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "curtsies"; ··· 8 8 sha256 = "89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9"; 9 9 }; 10 10 11 - propagatedBuildInputs = [ blessings wcwidth typing ]; 11 + propagatedBuildInputs = [ blessings wcwidth pyte ]; 12 12 13 - checkInputs = [ mock pyte nose ]; 13 + checkInputs = [ nose mock pytest ]; 14 14 15 15 checkPhase = '' 16 - nosetests tests 16 + py.test 17 17 ''; 18 18 19 19 meta = with stdenv.lib; {
+7 -19
pkgs/development/python-modules/daphne/default.nix
··· 1 - { stdenv, buildPythonPackage, isPy3k, fetchFromGitHub 2 - , asgiref, autobahn, twisted, pytestrunner 3 - , hypothesis, pytest, pytest-asyncio 1 + { stdenv, buildPythonPackage, fetchPypi, 2 + asgiref, autobahn, twisted, hypothesis 4 3 }: 5 4 buildPythonPackage rec { 6 5 pname = "daphne"; 6 + name = "${pname}-${version}"; 7 7 version = "2.0.3"; 8 8 9 - disabled = !isPy3k; 10 - 11 - src = fetchFromGitHub { 12 - owner = "django"; 13 - repo = pname; 14 - rev = version; 15 - sha256 = "1rdnzpgyk5cnx4xc3c7k11v2x9xpihgjpq14fib80jfpcqggw687"; 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "bb2075ce35ca00f2e5440cc034dfebd5c00d346de62ea45f099db089b868c31f"; 16 12 }; 17 13 18 - nativeBuildInputs = [ pytestrunner ]; 19 - 14 + buildInputs = [ hypothesis ]; 20 15 propagatedBuildInputs = [ asgiref autobahn twisted ]; 21 - 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 16 29 17 meta = with stdenv.lib; { 30 18 description = "Django ASGI (HTTP/WebSocket) server";
+3 -6
pkgs/development/python-modules/dbf/default.nix
··· 1 - { stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k, pythonOlder, enum34, python }: 1 + { stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "dbf"; 5 5 version = "0.96.8"; 6 + name = "${pname}-${version}"; 6 7 7 8 src = fetchPypi { 8 9 inherit pname version; 9 10 sha256 = "1z8n7s4cka6x9ybh4qpfhj51v2qrk38h2f06npizzhm0hmn6r3v1"; 10 11 }; 11 12 12 - propagatedBuildInputs = [ aenum ] ++ stdenv.lib.optional (pythonOlder "3.4") [ enum34 ]; 13 + propagatedBuildInputs = [ aenum ]; 13 14 14 15 doCheck = !isPy3k; 15 16 # tests are not yet ported. 16 17 # https://groups.google.com/forum/#!topic/python-dbase/96rx2xmCG4w 17 - 18 - checkPhase = '' 19 - ${python.interpreter} dbf/test.py 20 - ''; 21 18 22 19 meta = with stdenv.lib; { 23 20 description = "Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
+2 -3
pkgs/development/python-modules/ecpy/default.nix
··· 1 - { stdenv, fetchPypi, buildPythonPackage, isPy3k, hidapi 1 + { stdenv, fetchPypi, buildPythonPackage, hidapi 2 2 , pycrypto, pillow, protobuf, future, ecpy 3 3 }: 4 4 5 5 buildPythonPackage rec { 6 + name = "${pname}-${version}"; 6 7 pname = "ECPy"; 7 8 version = "0.8.3"; 8 - 9 - disabled = !isPy3k; 10 9 11 10 src = fetchPypi { 12 11 inherit pname version;
+4 -4
pkgs/development/python-modules/faker/default.nix
··· 1 1 { lib, buildPythonPackage, fetchPypi, pythonOlder, 2 2 # Build inputs 3 - dateutil, six, text-unidecode, ipaddress ? null, 3 + dateutil, six, ipaddress ? null, 4 4 # Test inputs 5 5 email_validator, nose, mock, ukpostcodeparser }: 6 6 ··· 8 8 9 9 buildPythonPackage rec { 10 10 pname = "Faker"; 11 - version = "0.8.11"; 11 + version = "0.8.8"; 12 + name = "${pname}-${version}"; 12 13 13 14 src = fetchPypi { 14 15 inherit pname version; 15 - sha256 = "126kdy6lj10rwgchzz0lzjabx0zcyskamhn0qib67k69fcksjmq8"; 16 + sha256 = "e928cf853ef69d7471421f2a3716a1239e43de0fa9855f4016ee0c9f1057328a"; 16 17 }; 17 18 18 19 checkInputs = [ ··· 25 26 propagatedBuildInputs = [ 26 27 dateutil 27 28 six 28 - text-unidecode 29 29 ] ++ lib.optional (pythonOlder "3.3") ipaddress; 30 30 31 31 meta = with lib; {
-26
pkgs/development/python-modules/green/default.nix
··· 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 - }
-48
pkgs/development/python-modules/konfig/default.nix
··· 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 - }
+6 -2
pkgs/development/python-modules/natsort/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , pythonOlder 4 + , isPy35 5 + , isPy36 4 6 , fetchPypi 5 7 , hypothesis 6 8 , pytestcache 9 + , pytestcov 7 10 , pytestflakes 8 11 , pytestpep8 9 12 , pytest ··· 16 19 pname = "natsort"; 17 20 version = "5.2.0"; 18 21 19 - checkInputs = [ 22 + buildInputs = [ 20 23 hypothesis 21 24 pytestcache 25 + pytestcov 22 26 pytestflakes 23 27 pytestpep8 24 28 pytest ··· 37 41 # testing based on project's tox.ini 38 42 checkPhase = '' 39 43 pytest --doctest-modules natsort 40 - pytest --flakes --pep8 44 + pytest --flakes --pep8 --cov natsort --cov-report term-missing 41 45 ''; 42 46 43 47 meta = {
+12 -4
pkgs/development/python-modules/networkx/default.nix
··· 3 3 , fetchPypi 4 4 , nose 5 5 , decorator 6 + , isPy36 7 + , isPyPy 6 8 }: 7 9 8 10 buildPythonPackage rec { 9 11 pname = "networkx"; 10 - version = "2.1"; 12 + version = "1.11"; 13 + 14 + # Currently broken on PyPy. 15 + # https://github.com/networkx/networkx/pull/1361 16 + disabled = isPyPy; 11 17 12 18 src = fetchPypi { 13 19 inherit pname version; 14 - extension = "zip"; 15 - sha256 = "64272ca418972b70a196cb15d9c85a5a6041f09a2f32e0d30c0255f25d458bb1"; 20 + sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd"; 16 21 }; 17 22 18 23 checkInputs = [ nose ]; 19 24 propagatedBuildInputs = [ decorator ]; 20 25 26 + # 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299 27 + doCheck = !(isPy36); 28 + 21 29 meta = { 22 30 homepage = "https://networkx.github.io/"; 23 31 description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks"; 24 32 license = lib.licenses.bsd3; 25 33 }; 26 - } 34 + }
+1 -4
pkgs/development/python-modules/pomegranate/default.nix
··· 3 3 buildPythonPackage rec { 4 4 pname = "pomegranate"; 5 5 version = "0.8.1"; 6 + name = "${pname}-${version}"; 6 7 7 8 src = fetchFromGitHub { 8 9 repo = pname; ··· 20 21 homepage = https://github.com/jmschrei/pomegranate; 21 22 license = licenses.mit; 22 23 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; 27 24 }; 28 25 }
+1 -15
pkgs/development/python-modules/prov/default.nix
··· 7 7 , six 8 8 , pydotplus 9 9 , rdflib 10 - , pydot 11 - , glibcLocales 12 10 }: 13 11 14 12 buildPythonPackage rec { ··· 20 18 sha256 = "640dc158d931403bc6c1a0ad80702caae71f810bac21f90ec605865c8444b7bb"; 21 19 }; 22 20 23 - prePatch = '' 24 - substituteInPlace setup.py --replace "six==1.10.0" "six>=1.10.0" 25 - ''; 26 - 27 21 propagatedBuildInputs = [ 28 22 lxml 29 23 networkx ··· 32 26 pydotplus 33 27 rdflib 34 28 ]; 35 - 36 - checkInputs = [ 37 - pydot 38 - glibcLocales 39 - ]; 40 - 41 - preCheck = '' 42 - export LC_ALL="en_US.utf-8" 43 - ''; 29 + doCheck = false; # takes ~60 mins 44 30 45 31 meta = with stdenv.lib; { 46 32 description = "A Python library for W3C Provenance Data Model (PROV)";
+1 -6
pkgs/development/python-modules/pytest-mock/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k, pytest, mock, setuptools_scm }: 1 + { lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, setuptools_scm }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "pytest-mock"; ··· 7 7 src = fetchPypi { 8 8 inherit pname version; 9 9 sha256 = "8ed6c9ac6b7565b226b4da2da48876c9198d76401ec8d9c5e4c69b45423e33f8"; 10 - }; 11 - 12 - patches = fetchpatch { 13 - url = "${meta.homepage}/pull/107.patch"; 14 - sha256 = "07p7ra6lilfv04wyxc855zmfwxvnpmi9s0v6vh5bx769cj9jwxck"; 15 10 }; 16 11 17 12 propagatedBuildInputs = [ pytest ] ++ lib.optional (!isPy3k) mock;
+2 -2
pkgs/development/python-modules/pytest-xdist/default.nix
··· 2 2 3 3 buildPythonPackage rec { 4 4 pname = "pytest-xdist"; 5 - version = "1.22.1"; 5 + version = "1.22.0"; 6 6 7 7 src = fetchPypi { 8 8 inherit pname version; 9 - sha256 = "fcd6f36bab93b0b24ec45ca12f798b9b3af71da826db0b0794b358d2f5c038de"; 9 + sha256 = "65228a859191f2c74ee68c127317eefe35eedd3d43fc1431f19240663b0cafcd"; 10 10 }; 11 11 12 12 nativeBuildInputs = [ setuptools_scm ];
-24
pkgs/development/python-modules/rednose/default.nix
··· 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 - }
-20
pkgs/development/python-modules/termstyle/default.nix
··· 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 - }
-23
pkgs/development/python-modules/text-unidecode/default.nix
··· 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 - }
-21
pkgs/development/python-modules/xdot/default.nix
··· 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 - }
+1 -1
pkgs/development/tools/build-managers/meson/setup-hook.sh
··· 29 29 mesonCheckPhase() { 30 30 runHook preCheck 31 31 32 - meson test --print-errorlogs 32 + meson test 33 33 34 34 runHook postCheck 35 35 }
+2 -2
pkgs/tools/filesystems/e2fsprogs/default.nix
··· 1 1 { stdenv, buildPackages, fetchurl, pkgconfig, libuuid, gettext, texinfo }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "e2fsprogs-1.43.9"; 4 + name = "e2fsprogs-1.43.8"; 5 5 6 6 src = fetchurl { 7 7 url = "mirror://sourceforge/e2fsprogs/${name}.tar.gz"; 8 - sha256 = "15rqvkzylqqckshfy7vmk15k7wds2rh3k1pwrkrs684p3g0gzq2v"; 8 + sha256 = "1pn33rap3lcjm3gx07pmgyhx4j634gja63phmi4g5dq8yj0z8ciz"; 9 9 }; 10 10 11 11 outputs = [ "bin" "dev" "out" "man" "info" ];
+4 -1
pkgs/top-level/all-packages.nix
··· 10798 10798 suffix = "min"; 10799 10799 }; 10800 10800 10801 - poppler_qt4 = callPackage ../development/libraries/poppler/qt4.nix { }; 10801 + poppler_qt4 = poppler.override { 10802 + qt4Support = true; 10803 + suffix = "qt4"; 10804 + }; 10802 10805 10803 10806 poppler_utils = poppler.override { suffix = "utils"; utils = true; }; 10804 10807
+142 -8
pkgs/top-level/python-packages.nix
··· 1673 1673 }; 1674 1674 }; 1675 1675 1676 - binaryornot = callPackage ../development/python-modules/binaryornot { }; 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 + 1677 1697 1678 1698 bitbucket_api = buildPythonPackage rec { 1679 1699 name = "bitbucket-api-0.4.4"; ··· 9207 9227 }; 9208 9228 }; 9209 9229 9210 - konfig = callPackage ../development/python-modules/konfig { }; 9230 + konfig = buildPythonPackage rec { 9231 + name = "konfig-${version}"; 9232 + version = "1.1"; 9233 + 9234 + # konfig unconditionaly depend on configparser, even if it is part of 9235 + # the standard library in python 3.2 or above. 9236 + disabled = isPy3k; 9237 + 9238 + src = pkgs.fetchgit { 9239 + url = https://github.com/mozilla-services/konfig.git; 9240 + rev = "refs/tags/${version}"; 9241 + sha256 = "1h780fbrv275dcik4cs3rincza805z6q726b48r4a0qmh5d8160c"; 9242 + }; 9243 + 9244 + propagatedBuildInputs = with self; [ configparser six ]; 9245 + 9246 + patches = [ (pkgs.writeText "konfig.patch" '' 9247 + diff --git a/setup.py b/setup.py 9248 + index 96fd858..bb4db06 100644 9249 + --- a/setup.py 9250 + +++ b/setup.py 9251 + @@ -20,7 +20,7 @@ setup(name='konfig', 9252 + author_email="tarek@mozilla.com", 9253 + include_package_data=True, 9254 + install_requires = [ 9255 + - 'configparser', 'argparse', 'six' 9256 + + 'configparser', 'six' 9257 + ], 9258 + zip_safe=False, 9259 + classifiers=classifiers, 9260 + '') ]; 9261 + 9262 + meta = { 9263 + description = "Yet Another Config Parser"; 9264 + homepage = "https://github.com/mozilla-services/konfig"; 9265 + license = licenses.mpl20; 9266 + }; 9267 + }; 9211 9268 9212 9269 kitchen = callPackage ../development/python-modules/kitchen/default.nix { }; 9213 9270 ··· 10583 10640 10584 10641 mysql-connector = callPackage ../development/python-modules/mysql-connector { }; 10585 10642 10643 + mysql_connector_repackaged = buildPythonPackage rec { 10644 + name = "mysql-connector-repackaged-0.3.1"; 10645 + 10646 + src = pkgs.fetchurl { 10647 + url = "mirror://pypi/m/mysql-connector-repackaged/${name}.tar.gz"; 10648 + sha256 = "170fbf11c54def1b5fcc919be0a890b760bb2eca81f56123a5dda0c69b5b099e"; 10649 + }; 10650 + 10651 + # Judging from SyntaxError 10652 + disabled = isPy3k; 10653 + 10654 + meta = { 10655 + maintainers = with maintainers; [ garbas domenkozar ]; 10656 + platforms = platforms.linux; 10657 + }; 10658 + }; 10659 + 10660 + 10586 10661 namebench = buildPythonPackage (rec { 10587 10662 name = "namebench-1.3.1"; 10588 10663 disabled = isPy3k || isPyPy; ··· 14742 14817 14743 14818 redis = callPackage ../development/python-modules/redis { }; 14744 14819 14745 - rednose = callPackage ../development/python-modules/rednose { }; 14820 + rednose = buildPythonPackage rec { 14821 + name = "rednose-${version}"; 14822 + version = "1.2.1"; 14823 + 14824 + src = pkgs.fetchurl { 14825 + url = "mirror://pypi/r/rednose/${name}.tar.gz"; 14826 + sha256 = "0b0bsna217lr1nykyhl5fgjly15zhdvqd4prg4wy1zrgfv7al6m0"; 14827 + }; 14828 + 14829 + meta = { 14830 + description = "A python nose plugin adding color to console results."; 14831 + }; 14832 + 14833 + buildInputs = with self; [ nose six ]; 14834 + propagatedBuildInputs = with self; [ colorama termstyle ]; 14835 + }; 14746 14836 14747 14837 reikna = callPackage ../development/python-modules/reikna { }; 14748 14838 ··· 15686 15776 sounddevice = callPackage ../development/python-modules/sounddevice { }; 15687 15777 15688 15778 stevedore = callPackage ../development/python-modules/stevedore {}; 15689 - 15690 - text-unidecode = callPackage ../development/python-modules/text-unidecode { }; 15691 15779 15692 15780 Theano = callPackage ../development/python-modules/Theano rec { 15693 15781 cudaSupport = pkgs.config.cudaSupport or false; ··· 17970 18058 17971 18059 persistent = callPackage ../development/python-modules/persistent {}; 17972 18060 17973 - xdot = callPackage ../development/python-modules/xdot { }; 18061 + xdot = buildPythonPackage rec { 18062 + name = "xdot-0.9"; 18063 + 18064 + src = pkgs.fetchurl { 18065 + url = "mirror://pypi/x/xdot/${name}.tar.gz"; 18066 + sha256 = "01v9vmgdxz1q2m2vq2b4aqx4ycw7grc0l4is673ygvyg9rk02dx3"; 18067 + }; 18068 + 18069 + nativeBuildInputs = with pkgs; [ wrapGAppsHook ]; 18070 + propagatedBuildInputs = with self; [ pkgs.gobjectIntrospection pygobject3 pkgs.graphviz pkgs.gnome3.gtk ]; 18071 + 18072 + meta = { 18073 + description = "xdot.py is an interactive viewer for graphs written in Graphviz's dot"; 18074 + homepage = https://github.com/jrfonseca/xdot.py; 18075 + license = licenses.lgpl3Plus; 18076 + }; 18077 + }; 17974 18078 17975 18079 zetup = callPackage ../development/python-modules/zetup { }; 17976 18080 ··· 20578 20682 }; 20579 20683 }; 20580 20684 20581 - termstyle = callPackage ../development/python-modules/termstyle { }; 20685 + termstyle = buildPythonPackage rec { 20686 + name = "python-termstyle-${version}"; 20687 + version = "0.1.10"; 20688 + src = pkgs.fetchurl { 20689 + url = "mirror://pypi/p/python-termstyle/${name}.tar.gz"; 20690 + sha256 = "1qllzkx1alf14zcfapppf8w87si4cpa7lgjmdp3f5idzdyqnnapl"; 20691 + }; 20692 + 20693 + meta = { 20694 + description = "Console colouring for python"; 20695 + homepage = "https://pypi.python.org/pypi/python-termstyle/0.1.10"; 20696 + license = licenses.bsdOriginal; 20697 + }; 20582 20698 20583 - green = callPackage ../development/python-modules/green { }; 20699 + }; 20700 + 20701 + green = buildPythonPackage rec { 20702 + name = "green-${version}"; 20703 + version = "2.3.0"; 20704 + src = pkgs.fetchurl { 20705 + url = "mirror://pypi/g/green/${name}.tar.gz"; 20706 + sha256 = "1888khfl9yxb8yfxq9b48dxwplqlxx8s0l530z5j7c6bx74v08b4"; 20707 + }; 20708 + 20709 + propagatedBuildInputs = with self; [ termstyle colorama ]; 20710 + buildInputs = with self; [ mock ]; 20711 + 20712 + meta = { 20713 + description = "Python test runner"; 20714 + homepage = "https://github.com/CleanCut/green"; 20715 + license = licenses.mit; 20716 + }; 20717 + }; 20584 20718 20585 20719 topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22 20586 20720