1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

Merge branch 'staging'

In particular, this upgrades the default gcc: 6 -> 7.
Fixes #27794, /cc #31747.
This commit is contained in:
Vladimír Čunát 2018-02-22 00:32:46 +01:00
commit 3e6c5a25f3
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
117 changed files with 515 additions and 412 deletions

View file

@ -1,5 +1,5 @@
{ mkDerivation, lib, fetchgit, fetchpatch
, pkgconfig, gyp, cmake, gcc7, makeWrapper
, pkgconfig, gyp, cmake, makeWrapper
, qtbase, qtimageformats, gtk3, libappindicator-gtk3
, dee, ffmpeg, openalSoft, minizip, libopus, alsaLib, libpulseaudio, range-v3
}:
@ -31,7 +31,7 @@ mkDerivation rec {
})
];
nativeBuildInputs = [ pkgconfig gyp cmake gcc7 makeWrapper ];
nativeBuildInputs = [ pkgconfig gyp cmake makeWrapper ];
buildInputs = [
qtbase qtimageformats gtk3 libappindicator-gtk3

View file

@ -33,7 +33,6 @@
, gnused ? null
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
, darwin ? null
, flex ? null
, buildPlatform, hostPlatform, targetPlatform
, buildPackages
}:
@ -295,7 +294,7 @@ stdenv.mkDerivation ({
];
buildInputs = [
gmp mpfr libmpc libelf flex
gmp mpfr libmpc libelf
targetPackages.stdenv.cc.bintools # For linking code at run-time
] ++ (optional (isl != null) isl)
++ (optional (zlib != null) zlib)
@ -408,9 +407,8 @@ stdenv.mkDerivation ({
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
buildFlags = if bootstrap then
(if profiledCompiler then "profiledbootstrap" else "bootstrap")
else "";
buildFlags =
optional bootstrap (if profiledCompiler then "profiledbootstrap" else "bootstrap");
installTargets =
if stripped
@ -523,7 +521,7 @@ stdenv.mkDerivation ({
}
# Strip kills static libs of other archs (hence targetPlatform != hostPlatform)
// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; NIX_STRIP_DEBUG = 0; }
// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; }
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
)

View file

@ -53,6 +53,7 @@ stdenv.mkDerivation rec {
hphp/runtime/ext/std/*.cpp \
hphp/runtime/ext_zend_compat/php-src/main/*.cpp \
hphp/runtime/ext_zend_compat/php-src/main/*.h
sed '1i#include <functional>' -i third-party/mcrouter/src/mcrouter/lib/cycles/Cycles.h
patchShebangs .
'';

View file

@ -69,7 +69,10 @@ let
fontconfig perl file bootjdk
];
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
NIX_CFLAGS_COMPILE = [
"-Wno-error=deprecated-declarations"
"-Wno-error=format-overflow" # newly detected by gcc7
];
NIX_LDFLAGS = if minimal then null else "-lfontconfig -lXcursor -lXinerama";

View file

@ -14,7 +14,7 @@ let
};
in rec {
rustc = callPackage ./rustc.nix {
inherit llvm targets targetPatches targetToolchains rustPlatform version src;
inherit stdenv llvm targets targetPatches targetToolchains rustPlatform version src;
forceBundledLLVM = true;
@ -31,6 +31,7 @@ in rec {
cargo = callPackage ./cargo.nix rec {
version = cargoVersion;
inherit src;
inherit stdenv;
inherit rustc; # the rustc that will be wrapped by cargo
inherit rustPlatform; # used to build cargo
};

View file

@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
configureFlags = "--enable-tabling=yes";
NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
meta = {
homepage = http://www.dcc.fc.up.pt/~vsc/Yap/;
description = "A ISO-compatible high-performance Prolog compiler";

View file

@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ readline gettext ncurses ];
# Needed with GCC 7
NIX_CFLAGS_COMPILE = "-Wno-error=int-in-bool-context";
patchPhase = optionalString stdenv.isDarwin ''
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
'';

View file

@ -18,6 +18,16 @@ stdenv.mkDerivation rec {
postUnpack = "sourceRoot=\${sourceRoot}/js/src";
patches = [
(fetchurl {
name = "jsoptparse-gcc7.patch";
url = "https://src.fedoraproject.org/cgit/rpms/mozjs17.git/plain/"
+ "mozjs17.0.0-gcc7.patch?id=43b846629a299f";
sha256 = "17plyaq0jwf9wli4zlgvh4ri3zyk6nj1fiakh3wnd37nsl90raf9";
})
];
patchFlags = "-p3";
postPatch = ''
# Fixes an issue with version detection under perl 5.22.x
sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl

View file

@ -1,5 +1,6 @@
{stdenv, fetchurl, perl
, searchNixProfiles ? true}:
{ stdenv, fetchurl, fetchpatch, perl
, searchNixProfiles ? true
}:
stdenv.mkDerivation rec {
name = "aspell-0.60.6.1";
@ -9,10 +10,16 @@ stdenv.mkDerivation rec {
sha256 = "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm";
};
patchPhase = ''
patches = [
(fetchpatch { # remove in >= 0.60.7
name = "gcc-7.patch";
url = "https://github.com/GNUAspell/aspell/commit/8089fa02122fed0a.diff";
sha256 = "1b3p1zy2lqr2fknddckm58hyk95hw4scf6hzjny1v9iaic2p37ix";
})
] ++ stdenv.lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch;
postPatch = ''
patch interfaces/cc/aspell.h < ${./clang.patch}
'' + stdenv.lib.optionalString searchNixProfiles ''
patch -p1 < ${./data-dirs-from-nix-profiles.patch}
'';
nativeBuildInputs = [ perl ];

View file

@ -58,6 +58,8 @@ in stdenv.mkDerivation rec {
rm aws-cpp-sdk-core-tests/aws/auth/AWSCredentialsProviderTest.cpp
'';
NIX_CFLAGS_COMPILE = [ "-Wno-error=noexcept-type" ];
meta = {
description = "A C++ interface for Amazon Web Services";
homepage = https://github.com/awslabs/aws-sdk-cpp;

View file

@ -10,11 +10,26 @@ stdenv.mkDerivation rec {
sha256 = "0qafmy2i6dzx4n1dqp6pygyy6gjljnb7hwjcj2z11c1wgclsq4dw";
};
patches = [( fetchurl {
url = http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/dbus-c%2B%2B/files/dbus-c%2B%2B-0.9.0-gcc-4.7.patch;
name = "gcc-4.7.patch";
sha256 = "0rwcz9pvc13b3yfr0lkifnfz0vb5q6dg240bzgf37ni4s8rpc72g";
})];
patches = [
(fetchurl {
name = "gcc-4.7.patch";
url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/"
+ "dbus-c%2B%2B/files/dbus-c%2B%2B-0.9.0-gcc-4.7.patch";
sha256 = "0rwcz9pvc13b3yfr0lkifnfz0vb5q6dg240bzgf37ni4s8rpc72g";
})
(fetchurl {
name = "writechar.patch"; # since gcc7
url = "https://src.fedoraproject.org/cgit/rpms/dbus-c++.git/plain/"
+ "dbus-c++-writechar.patch?id=7f371172f5c";
sha256 = "1kkg4gbpm4hp87l25zw2a3r9c58g7vvgzcqgiman734i66zsbb9l";
})
(fetchurl {
name = "threading.patch"; # since gcc7
url = "https://src.fedoraproject.org/cgit/rpms/dbus-c++.git/plain/"
+ "dbus-c++-threading.patch?id=7f371172f5c";
sha256 = "1h362anx3wyxm5lq0v8girmip1jmkdbijrmbrq7k5pp47zkhwwrq";
})
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dbus glib expat ];

View file

@ -6,6 +6,9 @@ stdenv.mkDerivation rec {
url = "https://github.com/json-c/json-c/archive/json-c-0.11-20130402.tar.gz";
sha256 = "1m8fy7lbahv1r7yqbhw4pl057sxmmgjihm1fsvc3h66710s2i24r";
};
NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ];
meta = with stdenv.lib; {
description = "A JSON implementation in C";
homepage = https://github.com/json-c/json-c/wiki;

View file

@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ]; # won't configure without it, no idea why
# probably OK after update: https://github.com/json-c/json-c/pull/365
NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ];
# compatibility hack (for mypaint at least)
postInstall = ''
ln -s json-c.pc "$dev/lib/pkgconfig/json.pc"

View file

@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "dev" "out" "info" "devdoc" ];
doCheck = !stdenv.isDarwin && !stdenv.hostPlatform.isMusl;
# broken with gcc-7
#doCheck = !stdenv.isDarwin && !stdenv.hostPlatform.isMusl;
hardeningDisable = [ "format" ];

View file

@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
buildInputs = [ libevent ];
propagatedBuildInputs = [ cyrus_sasl ];
NIX_CFLAGS_COMPILE = [ "-fpermissive"/*gcc7*/ ];
meta = with stdenv.lib; {
homepage = http://libmemcached.org;
description = "Open source C/C++ client library and tools for the memcached server";

View file

@ -3,11 +3,11 @@ let
s = # Generated upstream information
rec {
baseName="libmwaw";
version="0.3.10";
version="0.3.13";
name="${baseName}-${version}";
hash="087j6kx03ggvqwpl944nnf75qkvi9bag8b0z59phg66gbz0s0imj";
url="https://netcologne.dl.sourceforge.net/project/libmwaw/libmwaw/libmwaw-0.3.10/libmwaw-0.3.10.tar.xz";
sha256="087j6kx03ggvqwpl944nnf75qkvi9bag8b0z59phg66gbz0s0imj";
hash="1sjs3nc39im232h5bf81w3il8ivd7w2bc2qssxf7k74g8hlcfmfv";
url="mirror://sourceforge/libmwaw/libmwaw/libmwaw-0.3.13/libmwaw-0.3.13.tar.xz";
sha256="1sjs3nc39im232h5bf81w3il8ivd7w2bc2qssxf7k74g8hlcfmfv";
};
nativeBuildInputs = [ pkgconfig ];

View file

@ -21,11 +21,10 @@ stdenv.mkDerivation {
inherit (s) url sha256;
};
# Clang generates warnings in Boost's header files
# Clang and gcc-7 generate warnings, and
# -Werror causes these warnings to be interpreted as errors
# Simplest solution: disable -Werror
configureFlags = if stdenv.cc.isClang
then [ "--disable-werror" ] else null;
configureFlags = [ "--disable-werror" ];
# Fix an issue with boost 1.59
# This is fixed upstream so please remove this when updating

View file

@ -13,7 +13,8 @@ stdenv.mkDerivation rec {
./1.1.6-fix-test.patch
./1.1.6-G_CONST_RETURN.patch
./1.1.6-include-terminator.patch
];
]
++ [ ./gcc7-bug.patch ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib gtk2 dbus_glib ];
@ -24,7 +25,7 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = {
homepage = http://live.gnome.org/LibUnique;
homepage = https://wiki.gnome.org/Attic/LibUnique;
description = "A library for writing single instance applications";
license = stdenv.lib.licenses.lgpl21;
platforms = stdenv.lib.platforms.linux;

View file

@ -0,0 +1,18 @@
gcc-7 newly detects this class of bugs.
In this particular case it's clear that the inention was
to detect if the string is non-NULL *and* non-empty.
diff --git a/unique/uniqueapp.c b/unique/uniqueapp.c
index b40a86c..66a7226 100644
--- a/unique/uniqueapp.c
+++ b/unique/uniqueapp.c
@@ -176,7 +176,7 @@ set_startup_id (UniqueBackend *backend,
{
gchar *id;
- if (startup_id && startup_id != '\0')
+ if (startup_id && *startup_id != '\0')
id = g_strdup (startup_id);
else
{

View file

@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost librevenge zlib ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ]; # newly detected by gcc-7
meta = with stdenv.lib; {
homepage = http://libwps.sourceforge.net/;
description = "Microsoft Works document format import filter library";

View file

@ -8,11 +8,19 @@ stdenv.mkDerivation rec {
sha256 = "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683";
};
# From Handbrake
# mp4v2 doesn't seem to be actively maintained any more :-/
patches = [
# From Handbrake
# mp4v2 doesn't seem to be actively maintained any more :-/
./A02-meaningful-4gb-warning.patch
(fetchurl {
name = "gcc-7.patch";
url = "https://src.fedoraproject.org/cgit/rpms/libmp4v2.git/plain/"
+ "0004-Fix-GCC7-build.patch?id=d7aeedabb";
sha256 = "0sbn0il7lmk77yrjyb4f0a3z3h8gsmdkscvz5n9hmrrrhrwf672w";
})
];
# `faac' expects `mp4.h'.
postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";

View file

@ -11,23 +11,18 @@
}:
stdenv.mkDerivation rec {
version = if abiVersion == "5" then "5.9" else "6.0-20171125";
name = "ncurses-${version}";
version = "6.0-20171125";
name = "ncurses-${version}" + lib.optionalString (abiVersion == "5") "-abi5-compat";
src = fetchurl (if abiVersion == "5" then {
url = "mirror://gnu/ncurses/${name}.tar.gz";
sha256 = "0fsn7xis81za62afan0vvm38bvgzg5wfmv1m86flqcj0nj7jjilh";
} else {
src = fetchurl {
urls = [
"ftp://ftp.invisible-island.net/ncurses/current/${name}.tgz"
"https://invisible-mirror.net/archives/ncurses/current/${name}.tgz"
"ftp://ftp.invisible-island.net/ncurses/current/ncurses-${version}.tgz"
"https://invisible-mirror.net/archives/ncurses/current/ncurses-${version}.tgz"
];
sha256 = "11adzj0k82nlgpfrflabvqn2m7fmhp2y6pd7ivmapynxqb9vvb92";
});
};
# Unnecessarily complicated in order to avoid mass-rebuilds
patches = lib.optional (!stdenv.cc.isClang || abiVersion == "5") ./clang.patch
++ lib.optional (stdenv.cc.isGNU && abiVersion == "5") ./gcc-5.patch;
patches = lib.optional (!stdenv.cc.isClang) ./clang.patch;
outputs = [ "out" "dev" "man" ];
setOutputFlags = false; # some aren't supported
@ -37,7 +32,8 @@ stdenv.mkDerivation rec {
"--without-debug"
"--enable-pc-files"
"--enable-symlinks"
] ++ lib.optional unicode "--enable-widec";
] ++ lib.optional unicode "--enable-widec"
++ lib.optional (abiVersion == "5") "--with-abi-version=5";
# Only the C compiler, and explicitly not C++ compiler needs this flag on solaris:
CFLAGS = lib.optionalString stdenv.isSunOS "-D_XOPEN_SOURCE_EXTENDED";

View file

@ -1,46 +0,0 @@
https://bugs.gentoo.org/545114
extracted from the upstream change (which had many unrelated commits in one)
From 97bb4678dc03e753290b39bbff30ba2825df9517 Mon Sep 17 00:00:00 2001
From: "Thomas E. Dickey" <dickey@invisible-island.net>
Date: Sun, 7 Dec 2014 03:10:09 +0000
Subject: [PATCH] ncurses 5.9 - patch 20141206
+ modify MKlib_gen.sh to work around change in development version of
gcc introduced here:
https://gcc.gnu.org/ml/gcc-patches/2014-06/msg02185.html
https://gcc.gnu.org/ml/gcc-patches/2014-07/msg00236.html
(reports by Marcus Shawcroft, Maohui Lei).
diff --git a/ncurses/base/MKlib_gen.sh b/ncurses/base/MKlib_gen.sh
index d8cc3c9..b91398c 100755
--- a/ncurses/base/MKlib_gen.sh
+++ b/ncurses/base/MKlib_gen.sh
@@ -474,11 +474,22 @@ sed -n -f $ED1 \
-e 's/gen_$//' \
-e 's/ / /g' >>$TMP
+cat >$ED1 <<EOF
+s/ / /g
+s/^ //
+s/ $//
+s/P_NCURSES_BOOL/NCURSES_BOOL/g
+EOF
+
+# A patch discussed here:
+# https://gcc.gnu.org/ml/gcc-patches/2014-06/msg02185.html
+# introduces spurious #line markers. Work around that by ignoring the system's
+# attempt to define "bool" and using our own symbol here.
+sed -e 's/bool/P_NCURSES_BOOL/g' $TMP > $ED2
+cat $ED2 >$TMP
+
$preprocessor $TMP 2>/dev/null \
-| sed \
- -e 's/ / /g' \
- -e 's/^ //' \
- -e 's/_Bool/NCURSES_BOOL/g' \
+| sed -f $ED1 \
| $AWK -f $AW2 \
| sed -f $ED3 \
| sed \

View file

@ -176,13 +176,14 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE =
optionalString stdenv.isLinux "-std=gnu++98" # gnu++ in (Obj)C flags is no good on Darwin
+ optionalString (stdenv.isFreeBSD || stdenv.isDarwin)
" -I${glib.dev}/include/glib-2.0 -I${glib.out}/lib/glib-2.0/include"
+ optionalString stdenv.isDarwin " -I${libcxx}/include/c++/v1";
# with gcc7 the warnings blow the log over Hydra's limit
[ "-Wno-expansion-to-defined" "-Wno-unused-local-typedefs" ]
++ optional stdenv.isLinux "-std=gnu++98" # gnu++ in (Obj)C flags is no good on Darwin
++ optionals (stdenv.isFreeBSD || stdenv.isDarwin)
[ "-I${glib.dev}/include/glib-2.0" "-I${glib.out}/lib/glib-2.0/include" ]
++ optional stdenv.isDarwin "-I${libcxx}/include/c++/v1";
NIX_LDFLAGS = optionalString (stdenv.isFreeBSD || stdenv.isDarwin)
"-lglib-2.0";
NIX_LDFLAGS = optionalString (stdenv.isFreeBSD || stdenv.isDarwin) "-lglib-2.0";
preBuild = optionalString stdenv.isDarwin ''
# resolve "extra qualification on member" error

View file

@ -31,7 +31,8 @@ qtModule {
'';
NIX_CFLAGS_COMPILE =
optionals flashplayerFix
[ "-Wno-expansion-to-defined" ] # with gcc7 this warning blows the log over Hydra's limit
++ optionals flashplayerFix
[
''-DNIXPKGS_LIBGTK2="${getLib gtk2}/lib/libgtk-x11-2.0"''
''-DNIXPKGS_LIBGDK2="${getLib gdk_pixbuf}/lib/libgdk-x11-2.0"''

View file

@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
};
# Works around bunch of "format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}'" warnings
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.is64bit) "-Wno-error=format";
NIX_CFLAGS_COMPILE = stdenv.lib.optional (!stdenv.is64bit) "-Wno-error=format"
++ [ "-Wno-error=format-truncation" ]; # newly detected with gcc-7
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libusb ];

View file

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "aenum";
version = "2.0.9";
version = "2.1.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "d98bc55136d696fcf323760c3db0de489da9e41fd51283fa6f90205deb85bf6a";
sha256 = "9eb1c8f48ae13c56d22a7227db0e4b1717131b284c6c0db6e4ccca6f5894df95";
};
# For Python 3, locale has to be set to en_US.UTF-8 for

View file

@ -6,11 +6,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "alembic";
version = "0.9.7";
version = "0.9.8";
src = fetchPypi {
inherit pname version;
sha256 = "46f4849c6dce69f54dd5001b3215b6a983dee6b17512efee10e237fa11f20cfa";
sha256 = "13b8611788acf0d7b617775db5c2ae26554a6d4263c590ef628d448fd05aef56";
};
buildInputs = [ pytest pytestcov mock coverage ];

View file

@ -4,11 +4,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "argcomplete";
version = "1.9.3";
version = "1.9.4";
src = fetchPypi {
inherit pname version;
sha256 = "d97b7f3cfaa4e494ad59ed6d04c938fc5ed69b590bd8f53274e258fb1119bd1b";
sha256 = "06c8a54ffaa6bfc9006314498742ec8843601206a3b94212f82657673662ecf1";
};
doCheck = false; # bash-completion test fails with "compgen: command not found".

View file

@ -4,7 +4,7 @@
buildPythonPackage rec {
pname = "asana";
version = "0.6.7";
version = "0.7.0";
name = "${pname}-${version}";
meta = {
@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "d576601116764050c4cf63b417f1c24700b76cf6686f0e51e6b0b77d450e7973";
sha256 = "a7ff4a78529257a5412e78cafd6b3025523364c0ab628d579f2771dd66b254bc";
};
checkInputs = [ pytest ];

View file

@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchurl, six }:
buildPythonPackage rec {
version = "2.1.1";
version = "2.1.5";
pname = "asgiref";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/a/asgiref/${name}.tar.gz";
sha256 = "112828022d772925b47b22caf8108dadd3b26bb0af719eb01b2c3a807795429d";
sha256 = "1a46196df28c67e046a54cc537ce5a8f6a59eb68649f54680d7e4fc3b113ab1b";
};
propagatedBuildInputs = [ six ];

View file

@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "astropy";
version = "2.0.3";
version = "3.0";
name = "${pname}-${version}";
doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
src = fetchPypi {
inherit pname version;
sha256 = "fdfc0248f6250798ed6d1327be609cb901db89ae01fc768cfbc9e263bdf56f4f";
sha256 = "9e0ad19b9d6d227bdf0932bbe64a8c5dd4a47d4ec078586cf24bf9f0c61d9ecf";
};
propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires

View file

@ -7,11 +7,11 @@
if !(pythonOlder "3.3") then null else buildPythonPackage rec {
pname = "backports.functools_lru_cache";
version = "1.4";
version = "1.5";
src = fetchPypi {
inherit pname version;
sha256 = "31f235852f88edc1558d428d890663c49eb4514ffec9f3650e7f3c9e4a12e36f";
sha256 = "9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a";
};
buildInputs = [ setuptools_scm ];

View file

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "bibtexparser";
version = "0.6.2";
version = "1.0.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "5888219ac5db1c63ae0ad4db52ec7ad87fe7a32bd60e62ee87bceedb8ebf73b8";
sha256 = "cc41cdd8332c2bf44b97daf1f135f4f267c3b744c33976655cd270b66f964c0a";
};
# No tests in archive

View file

@ -34,11 +34,11 @@
buildPythonPackage rec {
pname = "bokeh";
name = "${pname}${version}";
version = "0.12.13";
version = "0.12.14";
src = fetchPypi {
inherit pname version;
sha256 = "6e28cbfd88de0c459435278b75f9982591ec0aaa3d37a195052645e1c62e89e3";
sha256 = "42abada2e484d2d5b290d14a943e1c3cd7adabd39933b5f074f57b6cf7920a87";
};
disabled = isPyPy;

View file

@ -12,11 +12,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "botocore";
version = "1.8.36";
version = "1.8.45";
src = fetchPypi {
inherit pname version;
sha256 = "b2c9e0fd6d14910f759a33c19f8315dddedbb3c5569472b7be7ceed4f001a675";
sha256 = "8f91b648a216dc945783d1539c013fc08a9e65ecc4fc5aae017bdd5961fd3468";
};
propagatedBuildInputs = [

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "bpython";
version = "0.17";
version = "0.17.1";
src = fetchPypi {
inherit pname version;
sha256 = "1mbah208jhd7bsfaa17fwpi55f7fvif0ghjwgrjmpmx8w1vqab9l";
sha256 = "8907c510bca3c4d9bc0a157279bdc5e3b739cc68c0f247167279b6fe4becb02f";
};
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];

View file

@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "channels";
name = "${pname}-${version}";
version = "2.0.0";
version = "2.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "c365492b90bd936c763e06cd76bda96cd3e70e5a5d2a196c25754e0c1d8da85a";
sha256 = "5d41e0f2aa40f9755f36c2c1dd83748b6793732190d577922e06294a3b37fd92";
};
# Files are missing in the distribution

View file

@ -7,11 +7,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "CherryPy";
version = "13.1.0";
version = "14.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0pb9mfmhns33jq4nrd38mv88ha74fj3q0y2mm8qsjh7ywphvk9ap";
sha256 = "5f5ee020d6547a8d452b3560775ca2374ffe2ff8c0aec1b272e93b6af80d850e";
};
propagatedBuildInputs = [ cheroot portend routes six ];

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "ConfigArgParse";
version = "0.12.0";
version = "0.13.0";
src = fetchPypi {
inherit pname version;
sha256 = "0fgkiqh6r3rbkdq3k8c48m85g52k96686rw3a6jg4lcncrkpvk98";
sha256 = "e6441aa58e23d3d122055808e5e2220fd742dff6e1e51082d2a4e4ed145dd788";
};
# no tests in tarball

View file

@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "coverage";
version = "4.4.2";
version = "4.5.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "309d91bd7a35063ec7a0e4d75645488bfab3f0b66373e7722f23da7f5b0f34cc";
sha256 = "56e448f051a201c5ebbaa86a5efd0ca90d327204d8b059ab25ad0f35fbfd79f1";
};
# No tests in archive

View file

@ -2,10 +2,10 @@
buildPythonPackage rec {
pname = "curtsies";
version = "0.2.11";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc";
sha256 = "89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9";
};
propagatedBuildInputs = [ blessings wcwidth pyte ];

View file

@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "daphne";
name = "${pname}-${version}";
version = "2.0.0";
version = "2.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "ecd43a2dd889fb74e16bf8b7f67c076c4ec1b36229ce782272e46c50d56174dd";
sha256 = "bb2075ce35ca00f2e5440cc034dfebd5c00d346de62ea45f099db089b868c31f";
};
buildInputs = [ hypothesis ];

View file

@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "dask";
version = "0.16.1";
version = "0.17.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "07a0609ce053c8c2675037e6d5242899f90ecfb5262e1d0b2d7264fe8814099c";
sha256 = "4d2b0754d16ddc3f87026c1fc4fa3b589d7604a41d3f6510268f172abc1d0a5e";
};
checkInputs = [ pytest ];

View file

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "django-polymorphic";
version = "2.0";
version = "2.0.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "78f666149ea10cdda08ac6c25ddf4b4e582ee380be87e7968bfed008ef39dfa5";
sha256 = "e1821d7b5874509a158a0f22bebf544330e0944c481c5a3e6da6cac8887e4e88";
};
checkInputs = [ django ];

View file

@ -11,7 +11,7 @@ buildPythonApplication rec {
src = fetchPypi {
inherit pname version;
sha256 = "02zgbwf0ffiazswhyangdfhnxia2i43a40rbi67sz2nqnzjf09zj";
sha256 = "f227e0e4b7d88aaf8f892b03a2068942c56ea16bcf2a0fb9fe2a3a071c5fef0b";
};
# lots of networking and other fails

View file

@ -3,12 +3,12 @@
buildPythonPackage rec {
pname = "Eve";
version = "0.7.6";
version = "0.7.8";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1ba84ab471bc2203a728fe4707a9279c44420224180b418601778125f51577ff";
sha256 = "af373ab7b9611990d39b090eed372a0860d4e12a1c8a6ef49fdee29e4626053f";
};
patches = [

View file

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "Fiona";
version = "1.7.11";
version = "1.7.11.post1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "5e9c68ea71e9d79fcfb68c9a101c0b133301e233c9bcca7b7c65f33cc7636ef5";
sha256 = "35df044fa805e6b420450f5d4281fc0edf96e1da0545c31032045cd3cfad3abf";
};
buildInputs = [

View file

@ -3,10 +3,10 @@
buildPythonPackage rec {
pname = "flake8-debugger";
name = "${pname}-${version}";
version = "3.0.0";
version = "3.1.0";
src = fetchurl {
url = "mirror://pypi/f/flake8-debugger/${name}.tar.gz";
sha256 = "e5c8ac980d819db2f3fbb89fe0e43a2fe6c127edd6ce4984a3f7e0bbdac3d2d4";
sha256 = "be4fb88de3ee8f6dd5053a2d347e2c0a2b54bab6733a2280bb20ebd3c4ca1d97";
};
buildInputs = [ nose ];
propagatedBuildInputs = [ flake8 ];

View file

@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "fonttools";
version = "3.21.2";
version = "3.22.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "96b636793c806206b1925e21224f4ab2ce5bea8ae0990ed181b8ac8d30848f47";
sha256 = "01640dfbc0ba752181b21fe74240b8a7bbf7af75581737245836ada5565bd549";
extension = "zip";
};

View file

@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "globus-sdk";
version = "1.4.1";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "1nwdhhn9ib5ln56q8h3g42dl93jl67xlxkgl1wqkh7pacg00r4vs";
sha256 = "f3ee8294c11f0d1a4430ae7534236c6a6837312f1b4056adbb183a3af663d2be";
};
checkPhase = ''

View file

@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "google-auth";
version = "1.3.0";
version = "1.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "d119b5954393d81c4a986ab420cf2c8129fc95ff5c4c6bb8ab5c8f3e6446394f";
sha256 = "9051802d3dae256036cca9e34633a32c0ed1427730d4ebc513dff91ec8b6dd45";
};
checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver ];

View file

@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "google-cloud-speech";
version = "0.31.0";
version = "0.32.0";
src = fetchPypi {
inherit pname version;
sha256 = "b0f6a542165750e42b1c92e6c465e8dc35c38d138ae7f08174971ab9b0df2a71";
sha256 = "2513725e693c3a2fdf22cb3065f3fcb39de2ab962a0cbc5de11a3889834189e1";
};
propagatedBuildInputs = [ setuptools google_api_core google_gax google_cloud_core ];

View file

@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "grpcio";
version = "1.9.0";
version = "1.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "b61d3a7c45aa08f15dfa735a6a8282b5097be91ff36ad347594d3945ffc12181";
sha256 = "e7c43b5619deff48cc177c1b0618c4beeb2797f910f160e3c2035d5baf790a5d";
};
propagatedBuildInputs = [ six protobuf ]

View file

@ -3,12 +3,12 @@ nose, shouldbe, gss, krb5Full, which, darwin }:
buildPythonPackage rec {
pname = "gssapi";
version = "1.3.0";
version = "1.4.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "765205082a9490c8e8be88ac16a6249d124396a671665edeec9927a7f244d712";
sha256 = "be8f37dd9da726db375b9c693e0a63b391d381d903516e79ecc2a2cc965580e4";
};
# It's used to locate headers

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, buildPythonPackage
{ stdenv, fetchPypi, fetchpatch, python, buildPythonPackage
, numpy, hdf5, cython, six, pkgconfig
, mpi4py ? null, openssh }:
@ -9,14 +9,12 @@ with stdenv.lib;
let
mpi = hdf5.mpi;
mpiSupport = hdf5.mpiSupport;
in buildPythonPackage rec {
version = "2.7.1";
pname = "h5py";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/h/h5py/${name}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "180a688311e826ff6ae6d3bda9b5c292b90b28787525ddfcb10a29d5ddcae2cc";
};
@ -34,11 +32,15 @@ in buildPythonPackage rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ hdf5 cython ]
++ optional mpiSupport mpi
;
++ optional mpiSupport mpi;
propagatedBuildInputs = [ numpy six]
++ optionals mpiSupport [ mpi4py openssh ]
;
++ optionals mpiSupport [ mpi4py openssh ];
patches = [
# Patch is based on upstream patch. The tox.ini hunk had to be removed.
# https://github.com/h5py/h5py/commit/5009e062a6f7d4e074cab0fcb42a780ac2b1d7d4.patch
./numpy-1.14.patch
];
meta = {
description =

View file

@ -0,0 +1,94 @@
From 5009e062a6f7d4e074cab0fcb42a780ac2b1d7d4 Mon Sep 17 00:00:00 2001
From: James Tocknell <aragilar@gmail.com>
Date: Thu, 28 Dec 2017 20:55:55 +1100
Subject: [PATCH] FIX: Don't reorder compound types, breaks on numpy 1.14
---
h5py/h5t.pyx | 25 +++++++------------------
setup.py | 2 +-
tox.ini | 4 ++--
3 files changed, 10 insertions(+), 21 deletions(-)
diff --git a/h5py/h5t.pyx b/h5py/h5t.pyx
index cc2344e1..7445e9eb 100644
--- a/h5py/h5t.pyx
+++ b/h5py/h5t.pyx
@@ -1136,12 +1136,6 @@ cdef class TypeCompoundID(TypeCompositeID):
else:
if sys.version[0] == '3':
field_names = [x.decode('utf8') for x in field_names]
- if len(field_names) > 0:
- collated_fields = zip(field_names, field_types, field_offsets)
- ordered_fields = sorted(
- collated_fields, key=operator.itemgetter(2))
- field_names, field_types, field_offsets = \
- map(list, zip(*ordered_fields))
typeobj = dtype({
'names': field_names,
'formats': field_types,
@@ -1458,8 +1452,7 @@ cdef TypeCompoundID _c_compound(dtype dt, int logical, int aligned):
cdef dtype member_dt
cdef size_t member_offset = 0
- cdef dict offsets = {}
- cdef list fields = []
+ cdef dict fields = {}
# The challenge with correctly converting a numpy/h5py dtype to a HDF5 type
# which is composed of subtypes has three aspects we must consider
@@ -1468,19 +1461,14 @@ cdef TypeCompoundID _c_compound(dtype dt, int logical, int aligned):
# 2. For correct round-tripping of aligned dtypes, we need to consider how
# much padding we need by looking at the field offsets
# 3. There is no requirement that the offsets be monotonically increasing
- # (so we start by sorting the names as a function of increasing offset)
#
# The code below tries to cover these aspects
- # Get offsets for each compound member
- for name, field in dt.fields.items():
- offsets[name] = field[1]
-
# Build list of names, offsets, and types, sorted by increasing offset
# (i.e. the position of the member in the struct)
- for name in sorted(dt.names, key=offsets.__getitem__):
+ for name in sorted(dt.names, key=(lambda n: dt.fields[n][1])):
field = dt.fields[name]
- name = name.encode('utf8') if isinstance(name, unicode) else name
+ h5_name = name.encode('utf8') if isinstance(name, unicode) else name
# Get HDF5 data types and set the offset for each member
member_dt = field[0]
@@ -1489,7 +1477,7 @@ cdef TypeCompoundID _c_compound(dtype dt, int logical, int aligned):
if aligned and (member_offset > field[1]
or member_dt.itemsize != member_type.get_size()):
raise TypeError("Enforced alignment not compatible with HDF5 type")
- fields.append((name, member_offset, member_type))
+ fields[name] = (h5_name, member_offset, member_type)
# Update member offset based on the HDF5 type size
member_offset += member_type.get_size()
@@ -1500,8 +1488,9 @@ cdef TypeCompoundID _c_compound(dtype dt, int logical, int aligned):
# Create compound with the necessary size, and insert its members
tid = H5Tcreate(H5T_COMPOUND, member_offset)
- for (name, member_offset, member_type) in fields:
- H5Tinsert(tid, name, member_offset, member_type.id)
+ for name in dt.names:
+ h5_name, member_offset, member_type = fields[name]
+ H5Tinsert(tid, h5_name, member_offset, member_type.id)
return TypeCompoundID(tid)
diff --git a/setup.py b/setup.py
index ec2a78a7..bbb086f6 100755
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@
# these are required to build h5py
# RUN_REQUIRES is included as setup.py test needs RUN_REQUIRES for testing
# RUN_REQUIRES can be removed when setup.py test is removed
-SETUP_REQUIRES = RUN_REQUIRES + [NUMPY_DEP, 'Cython>=0.19', 'pkgconfig']
+SETUP_REQUIRES = RUN_REQUIRES + [NUMPY_DEP, 'Cython>=0.23', 'pkgconfig']
# Needed to avoid trying to install numpy/cython on pythons which the latest
# versions don't support

View file

@ -1,5 +1,5 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, python
, pythonOlder, pythonAtLeast, enum34
{ lib, buildPythonPackage, fetchFromGitHub, python
, isPy3k, attrs, coverage, enum34
, doCheck ? true, pytest, pytest_xdist, flake8, flaky, mock
}:
buildPythonPackage rec {
@ -9,20 +9,19 @@ buildPythonPackage rec {
# pytz fake_factory django numpy pytest
# If you need these, you can just add them to your environment.
version = "3.27.0";
version = "3.45.2";
pname = "hypothesis";
name = "${pname}-${version}";
# Upstream prefers github tarballs
src = fetchFromGitHub {
owner = "HypothesisWorks";
repo = "hypothesis-python";
rev = "${version}";
sha256 = "1lvhd8jrwajyc5w1alb9vinsi97fjfqpkxkh8g8j527831lig0j0";
};
rev = version;
sha256 = "063sn5m1966gvm3wrlxczdq4vw0r94h3nd9xpr94qxahpg2r4bpb";
};
checkInputs = stdenv.lib.optionals doCheck [ pytest pytest_xdist flake8 flaky mock];
propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
checkInputs = [ pytest pytest_xdist flaky mock ];
propagatedBuildInputs = [ attrs coverage ] ++ lib.optional (!isPy3k) [ enum34 ];
inherit doCheck;
@ -32,11 +31,7 @@ buildPythonPackage rec {
py.test tests/cover
'';
# Unsupport by upstream on certain versions
# https://github.com/HypothesisWorks/hypothesis-python/issues/477
disabled = pythonOlder "3.4" && pythonAtLeast "2.8";
meta = with stdenv.lib; {
meta = with lib; {
description = "A Python library for property based testing";
homepage = https://github.com/HypothesisWorks/hypothesis;
license = licenses.mpl20;

View file

@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "ipykernel";
version = "4.8.0";
version = "4.8.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "dedc199df6a38725c732986dfa606c245fb8fe0fe999b33a0c305b73d80c6774";
sha256 = "fe2837622a4121cbe42b354db1e2ab46c91e807ffcb92f4c2cfd323a75f8737f";
};
buildInputs = [ nose ] ++ lib.optional isPy27 mock;

View file

@ -16,12 +16,12 @@
buildPythonPackage rec {
pname = "ipyparallel";
version = "6.0.2";
version = "6.1.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "7eea4780266252fcc987b220a302d589fbb4d6b0569bd131115a20b31891103d";
sha256 = "f1e03ebb8d17f67f03bafa5d85f220883462f7bd7a97fe904c7d56ffba8534a3";
};
buildInputs = [ nose ];

View file

@ -14,12 +14,12 @@
buildPythonPackage rec {
pname = "ipywidgets";
version = "7.1.1";
version = "7.1.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "69e8c444e99601e6f9b9e9e596c87c19665fc73c2dd05cd507c94f35fba2959d";
sha256 = "4263ce721a1e5b53a84c4595a5e296d270ae0dc534401b536f4dda64e0b0ca02";
};
# Tests are not distributed

View file

@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "jsonpickle";
version = "0.9.5";
version = "0.9.6";
src = fetchPypi {
inherit pname version;
sha256 = "cc25dc79571d4ad7db59d05ddb7de0d76a8d598cf6136e1dbeaa9361ebcfe749";
sha256 = "545b3bee0d65e1abb4baa1818edcc9ec239aa9f2ffbfde8084d71c056180054f";
};
doCheck = false;

View file

@ -3,11 +3,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "kaitaistruct";
version = "0.7";
version = "0.8";
src = fetchPypi {
inherit pname version;
sha256 = "19j3snmr0qbd48f7yd3cc21ffv13dahf8ys591dnalbhvnkar71i";
sha256 = "d1d17c7f6839b3d28fc22b21295f787974786c2201e8788975e72e2a1d109ff5";
};
meta = with stdenv.lib; {

View file

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "Keras";
version = "2.1.3";
version = "2.1.4";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "7ca3a381523bad40a6922e88951a316664cb088fd01cea07e5ec8ada3327e3c7";
sha256 = "7ee1fcc79072ac904a4f008d715bcb78c60250ae3cd41d99e268c60ade8d0d3a";
};
checkInputs = [

View file

@ -5,11 +5,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "libagent";
version = "0.9.7";
version = "0.9.8";
src = fetchPypi{
inherit pname version;
sha256 = "3ae14dc14859f7b4b92583ab0d40884ac07f26dbe00c7b747df2d50f4b1af098";
sha256 = "7e7d62cedef9d1291b8e77abc463d50b3d685dfd953611d55a0414c12276aa78";
};
buildInputs = [

View file

@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "m2r";
name = "${pname}-${version}";
version = "0.1.12";
version = "0.1.13";
src = fetchPypi {
inherit pname version;
sha256 = "adfb86ebb7ff3fcd3ebb27ce8cd6f795c409a13f0c03363e265f17419ce5b9ab";
sha256 = "b19e3703a3a897859f01ff6a068ee9a0eea8e8fdf75e896e00e88b3476a12f87";
};
propagatedBuildInputs = [ mistune docutils ];

View file

@ -22,12 +22,12 @@
buildPythonPackage rec {
pname = "magic-wormhole";
version = "0.10.4";
version = "0.10.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "cd3105975e71bc6437848c7fc9f0b23ef0e0c625c8b19ec66a5ddc727c6d11ae";
sha256 = "9558ea1f3551e535deec3462cd5c8391cb32ebb12ecd8b40b36861dbee4917ee";
};
checkInputs = [ mock ];

View file

@ -16,9 +16,8 @@
}:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "natsort";
version = "5.1.1";
version = "5.2.0";
buildInputs = [
hypothesis
@ -36,11 +35,9 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "9ffbfb74bf3fc3905be1b9b052ed865675651e38fcd972ed1ed5c64a02f93cbd";
sha256 = "c960082d2145b04723041c4b85092546560538e29664dd197a1344d5b090bc91";
};
patches = lib.optional (isPy35 || isPy36) ./python-3.6.3-test-failures.patch;
# testing based on project's tox.ini
checkPhase = ''
pytest --doctest-modules natsort

View file

@ -1,37 +0,0 @@
diff --git a/test_natsort/test_string_component_transform_factory.py b/test_natsort/test_string_component_transform_factory.py
index 6790e51..8db4efb 100644
--- a/test_natsort/test_string_component_transform_factory.py
+++ b/test_natsort/test_string_component_transform_factory.py
@@ -24,6 +24,8 @@ from hypothesis.strategies import (
)
from compat.locale import bad_uni_chars
+import pytest
+
# Each test has an "example" version for demonstrative purposes,
# and a test that uses the hypothesis module.
@@ -77,6 +79,7 @@ def test_string_component_transform_factory_with_LOCALE_returns_fast_int_and_gro
assert _string_component_transform_factory(ns.LOCALE)(x) == fast_int(x, key=get_strxfrm())
+@pytest.mark.xfail
@given(text())
def test_string_component_transform_factory_with_LOCALE_returns_fast_int_and_groupletters(x):
assume(x)
@@ -89,6 +92,7 @@ def test_string_component_transform_factory_with_LOCALE_and_GROUPLETTERS_returns
assert _string_component_transform_factory(ns.GROUPLETTERS | ns.LOCALE)(x) == fast_int(x, key=lambda x: get_strxfrm()(_groupletters(x)))
+@pytest.mark.xfail
@given(text())
def test_string_component_transform_factory_with_LOCALE_and_GROUPLETTERS_returns_fast_int_and_groupletters_and_locale_convert(x):
assume(x)
@@ -104,6 +108,7 @@ def test_string_component_transform_factory_with_LOCALE_and_DUMB_returns_fast_in
assert _string_component_transform_factory(ns._DUMB | ns.LOCALE)(x) == fast_int(x, key=lambda x: get_strxfrm()(_groupletters(x)))
+@pytest.mark.xfail
@given(text())
def test_string_component_transform_factory_with_LOCALE_and_DUMB_returns_fast_int_and_groupletters_and_locale_convert(x):
assume(x)

View file

@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "numpy";
version = "1.13.3";
version = "1.14.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "36ee86d5adbabc4fa2643a073f93d5504bdfed37a149a3a49f4dde259f35a750";
sha256 = "3de643935b212307b420248018323a44ec51987a336d1d747c1322afc3c099fb";
};
disabled = isPyPy;

View file

@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, sphinx
, jinja2
}:
buildPythonPackage rec {
pname = "numpydoc";
version = "0.7.0";
src = fetchPypi {
inherit pname;
inherit version;
sha256 = "2dc7b2c4e3914745e38e370946fa4c109817331e6d450806285c08bce5cd575a";
};
checkInputs = [ nose ];
propagatedBuildInputs = [ sphinx jinja2 ];
meta = {
description = "Sphinx extension to support docstrings in Numpy format";
homepage = "https://github.com/numpy/numpydoc";
license = lib.licenses.free;
};
}

View file

@ -16,11 +16,11 @@
buildPythonPackage rec {
pname = "oauthenticator";
version = "0.7.2";
version = "0.7.3";
src = fetchPypi {
inherit pname version;
sha256 = "0rlg63ii7sxj1xad2nx6wk1xgv3a8dm0az0q9g2v6hdv9cnc4b55";
sha256 = "cb0b2564e46db28350693bc3e6457333c4ee21af5066ac743730e3f3173ea7ed";
};
checkPhase = ''

View file

@ -4,7 +4,6 @@
buildPythonPackage rec {
pname = "packaging";
version = "16.8";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
@ -13,7 +12,11 @@ buildPythonPackage rec {
propagatedBuildInputs = [ pyparsing six ];
buildInputs = [ pytest pretend ];
checkInputs = [ pytest pretend ];
checkPhase = ''
py.test tests
'';
meta = with stdenv.lib; {
description = "Core utilities for Python packages";

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pafy";
version = "0.5.3.1";
version = "0.5.4";
src = fetchPypi {
inherit pname version;
sha256 = "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim";
sha256 = "e842dc589a339a870b5869cc3802f2e95824edf347f65128223cd5ebdff21024";
};
# No tests included in archive

View file

@ -5,20 +5,21 @@
, pytestrunner
, pytest
, glibcLocales
, packaging
}:
buildPythonPackage rec {
pname = "path.py";
version = "10.5";
version = "11.0";
name = pname + "-" + version;
src = fetchPypi {
inherit pname version;
sha256 = "63a7af08676668fd51750f111affbd38c1a13c61aba15c6665b16681771c79a8";
sha256 = "16134e5b287aba4a4125a6722e7837cf2a149fccc5000c500ae6c71a5525488b";
};
checkInputs = [ pytest pytestrunner ];
buildInputs = [setuptools_scm glibcLocales ];
checkInputs = [ pytest pytestrunner glibcLocales packaging ];
buildInputs = [ setuptools_scm ];
LC_ALL="en_US.UTF-8";

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pendulum";
version = "1.4.0";
version = "1.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "e996c34fb101c9c6d88a839c19af74d7c067b92ed3371274efcf4d4b6dc160a6";
sha256 = "3f16fb759e6126dd89d49886f8100caa72e5ab36563bc148b4f7eddfa0099c0f";
};
propagatedBuildInputs = [ dateutil pytzdata tzlocal ];

View file

@ -6,12 +6,12 @@
buildPythonPackage rec {
pname = "pexpect";
version = "4.3.1";
version = "4.4.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "8e287b171dbaf249d0b06b5f2e88cb7e694651d2d0b8c15bccb83170d3c55575";
sha256 = "67b85a1565968e3d5b5e7c9283caddc90c3947a2625bed1905be27bd5a03e47d";
};
# Wants to run pythonin a subprocess

View file

@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "plone.testing";
version = "5.1.1";
version = "6.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "2ca558a910b93355b760535b233518be3a06c58e46160487bf802b6f7cb1e511";
sha256 = "8aa7c45237b883ea1d1c28fb465322f69310b084b9f9b6a79af64401b649dc4c";
};
propagatedBuildInputs = [ setuptools zope_testing ];

View file

@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "plotly";
version = "2.3.0";
version = "2.4.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "95e72273699108f215886ab961dbf0890904d39583be39eabcd0788bc7ccf695";
sha256 = "8e7ee039231fec52b0b38d45e7470f70b117f6527b08cc922d74992f4d082858";
};
propagatedBuildInputs = [

View file

@ -6,7 +6,7 @@
buildPythonPackage rec {
pname = "plumbum";
version = "1.6.5";
version = "1.6.6";
name = "${pname}-${version}";
checkInputs = [ pytest ];
@ -16,6 +16,6 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "d8abb059bb62beb6c99db08d3598167abaeeab53eaf218f91e74bae471a24bee";
sha256 = "d179b90a9927f91427a28c1bac2864c61342cb43ef39aa7324c7c9a96bcc23eb";
};
}

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "prov";
version = "1.5.1";
version = "1.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "7a2d72b0df43cd9c6e374d815c8ce3cd5ca371d54f98f837853ac9fcc98aee4c";
sha256 = "640dc158d931403bc6c1a0ad80702caae71f810bac21f90ec605865c8444b7bb";
};
propagatedBuildInputs = [

View file

@ -6,12 +6,12 @@
buildPythonPackage rec {
pname = "scrypt";
version = "0.8.0";
version = "0.8.6";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0830r3q8f8mc4738ngcvwhv9kih5c6zf87mzkdifzf2h6kss99fl";
sha256 = "f8239b2d47fa1d40bc27efd231dc7083695d10c1c2ac51a99380360741e0362d";
};
buildInputs = [ openssl ];

View file

@ -2,12 +2,12 @@
, mesa, xorg, freetype, fontconfig, future}:
buildPythonPackage rec {
version = "1.3.0";
version = "1.3.1";
pname = "pyglet";
src = fetchPypi {
inherit pname version;
sha256 = "640a8f8e3d7bf8dbb551fa707f14021f619932990ab1401c48ba9dbcc6c2242c";
sha256 = "0a73280fa3949ea4890fee28f625c10b1e10a7cda390a08b6bce4740948167cd";
};
postPatch = let

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pytest-mock";
version = "1.6.3";
version = "1.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "920d1167af5c2c2ad3fa0717d0c6c52e97e97810160c15721ac895cac53abb1c";
sha256 = "8ed6c9ac6b7565b226b4da2da48876c9198d76401ec8d9c5e4c69b45423e33f8";
};
propagatedBuildInputs = [ pytest ] ++ lib.optional (!isPy3k) mock;

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pytest-runner";
version = "3.0";
version = "4.0";
src = fetchPypi {
inherit pname version;
sha256 = "00v7pi09q60yx0l1kzyklnmr5bp597mir85a9gsi7bdfyly3lz0g";
sha256 = "183f3745561b1e00ea51cd97634ba5c540848ab4aa8016a81faba7fb7f33ec76";
};
buildInputs = [ setuptools_scm pytest ];

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "python-magic";
version = "0.4.13";
version = "0.4.15";
src = fetchPypi {
inherit pname version;
sha256 = "128j9y30zih6cyjyjnxhghnvpjm8vw40a1q7pgmrp035yvkaqkk0";
sha256 = "f3765c0f582d2dfc72c15f3b5a82aecfae9498bd29ca840d72f37d7bd38bfcd5";
};
postPatch = ''

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ninja, meson, pkgconfig, gcc7, nixUnstable, isPy3k }:
{ stdenv, fetchFromGitHub, ninja, meson, pkgconfig, nixUnstable, isPy3k }:
assert isPy3k;
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "1piblysypyr442a6najk4mdh87xc377i2fdbfw6fr569z60mnnnj";
};
nativeBuildInputs = [ meson pkgconfig ninja gcc7 ];
nativeBuildInputs = [ meson pkgconfig ninja ];
buildInputs = [ nixUnstable ];

View file

@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "regex";
version = "2018.01.10";
version = "2018.02.08";
src = fetchPypi {
inherit pname version;
sha256 = "139678fc013b75e486e580c39b4c52d085ed7362e400960f8be1711a414f16b5";
sha256 = "2353c0e983c4029caf32016f1dddef623c3117ac282a818468c6d2f5d541698d";
};
meta = {

View file

@ -8,11 +8,11 @@
buildPythonApplication rec {
pname = "ropper";
version = "1.11.3";
version = "1.11.6";
src = fetchPypi {
inherit pname version;
sha256 = "77d9b03083d0a098261a1d2856cd330ea3db520511a78472e421a00526aa220c";
sha256 = "33777d0c3ddd9ca7bc48f53dbe2c4a222a567f1125c43b1c34fb1b360d0b19dc";
};
# XXX tests rely on user-writeable /dev/shm to obtain process locks and return PermissionError otherwise
# workaround: sudo chmod 777 /dev/shm

View file

@ -14,11 +14,11 @@
buildPythonPackage rec {
pname = "s3transfer";
version = "0.1.12";
version = "0.1.13";
src = fetchPypi {
inherit pname version;
sha256 = "07hjj1cy62sc3rh5lhna9mhylp7h7aak4v6mf6809q4nc8j1p28h";
sha256 = "90dc18e028989c609146e241ea153250be451e05ecc0c2832565231dacdf59c1";
};
foo = 1;

View file

@ -27,10 +27,10 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Sphinx";
version = "1.6.6";
version = "1.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "c39a6fa41bd3ec6fc10064329a664ed3a3ca2e27640a823dc520c682e4433cdb";
sha256 = "278b7923f3f4ed2a1d1359f0ae94d89ac90ddd4189e8362f4b4d3baa2afe6b4a";
};
LC_ALL = "en_US.UTF-8";

View file

@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "SQLAlchemy";
name = "${pname}-${version}";
version = "1.2.2";
version = "1.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "64b4720f0a8e033db0154d3824f5bf677cf2797e11d44743cf0aebd2a0499d9d";
sha256 = "9e9ec143e2e246f385cfb2de8daa89d2fa466279addcb7be9e102988fdf33d24";
};
checkInputs = [

View file

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "sqlmap";
version = "1.2";
version = "1.2.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "18ac6392a710f0cc106c28c4e27e43e8f1b25cb46fb8b6714836212607c07b10";
sha256 = "6256e0d5ab6d465152c8a8a21bdb97b50e155255d6bedd586ce214ed7a1fb9d7";
};
# No tests in archive

View file

@ -3,7 +3,7 @@
buildPythonPackage rec {
pname = "stripe";
version = "1.77.1";
version = "1.77.2";
name = "${pname}-${version}";
# Tests require network connectivity and there's no easy way to disable
@ -12,7 +12,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "d1c638b417301849ff4ee0327332cfdec96edda83c79b08af307339138077d59";
sha256 = "3bcd55108dd2c0e853a91147ee843bc375f35767e64d0f7680e5bd82ddb7fbf1";
};
buildInputs = [ unittest2 mock ];

View file

@ -5,11 +5,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "trezor";
version = "0.7.16";
version = "0.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "6bdb69fc125ba705854e21163be6c7da3aa17c2a3a84f40b6d8a3f6e4a8cb314";
sha256 = "2dd01e11d669cb8f5e40fcf1748bcabc41fb5f41edb010fc807dc3088f9bd7de";
};
propagatedBuildInputs = [ protobuf hidapi requests mnemonic ];

View file

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "voluptuous";
version = "0.10.5";
version = "0.11.1";
src = fetchPypi {
inherit pname version;
sha256 = "15i3gaap8ilhpbah1ffc6q415wkvliqxilc6s69a4rinvkw6cx3s";
sha256 = "af7315c9fa99e0bfd195a21106c82c81619b42f0bd9b6e287b797c6b6b6a9918";
};
checkInputs = [ nose ];

View file

@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "webcolors";
version = "1.7";
version = "1.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "e47e68644d41c0b1f1e4d939cfe4039bdf1ab31234df63c7a4f59d4766487206";
sha256 = "030562f624467a9901f0b455fef05486a88cfb5daa1e356bd4aacea043850b59";
};
checkPhase = ''

View file

@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "widgetsnbextension";
name = "${pname}-${version}";
version = "3.1.3";
version = "3.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "02edabcaeaa247721df8027f660f3384c20f30c4865a7ea5dd80685c368736df";
sha256 = "79f164a644620abbe351440a70468ac3a5b22b392afa4577c8d5f91577a2669b";
};
propagatedBuildInputs = [ notebook ];

View file

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "yapf";
version = "0.20.1";
version = "0.20.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "bd19f246be7193ad2acdc04702b92315f1ae28d49c82f6671afdeefe9d32f468";
sha256 = "7f5efdb7edf0318b91e53721d934580a77153e24a222f52f6e1c3b7629aead43";
};
meta = with stdenv.lib; {

View file

@ -5,13 +5,13 @@
buildPythonPackage rec {
pname = "zodbpickle";
version = "0.7.0";
version = "1.0";
name = "${pname}-${version}";
disabled = isPyPy; # https://github.com/zopefoundation/zodbpickle/issues/10
src = fetchPypi {
inherit pname version;
sha256 = "95a247fb17bce980af8d548af70ac5bd1bad22773f242eb8efa24428efa909a8";
sha256 = "3af9169fb1d5901cf6693ab356b0dfda20ad2cacc5673fad59b4449ed50d5399";
};
# fails..

Some files were not shown because too many files have changed in this diff Show more