Merge branch 'staging'

Main change: glibc: 2.25-x -> 2.26-y, containing security fixes,
and various features and deprecations.  Unfortunately, some of the
latter still cause (transitively) a couple hundred newly failing jobs.
I'm not delaying anymore, so that we have the security fix on master.
I mainly patched gcc, llvm and icu, but I can't fix everything...
This commit is contained in:
Vladimír Čunát
2017-11-07 15:57:54 +01:00
61 changed files with 1082 additions and 364 deletions

View File

@@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi
, enum34, hpack, hyperframe }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "h2";
version = "3.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "0r3f43r0v7sqgdjjg5ngw0dndk2v6cyd0jncpwya54m37y42z5mj";
};
propagatedBuildInputs = [ enum34 hpack hyperframe ];
meta = with stdenv.lib; {
description = "HTTP/2 State-Machine based protocol implementation";
homepage = "http://hyper.rtfd.org/";
license = licenses.mit;
};
}

View File

@@ -0,0 +1,17 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "hyperframe";
version = "5.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "017vjbb1xjak1pxcvihhilzjnmpfvhapk7k88wp6lvdkkm9l8nd2";
};
meta = with stdenv.lib; {
description = "HTTP/2 framing layer for Python";
homepage = "http://hyper.rtfd.org/";
license = licenses.mit;
};
}

View File

@@ -0,0 +1,18 @@
{ stdenv, kaitaistruct, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "kaitaistruct";
version = "0.7";
src = fetchPypi {
inherit pname version;
sha256 = "19j3snmr0qbd48f7yd3cc21ffv13dahf8ys591dnalbhvnkar71i";
};
meta = with stdenv.lib; {
description = "Kaitai Struct: runtime library for Python";
homepage = "https://github.com/kaitai-io/kaitai_struct_python_runtime";
license = licenses.mit;
};
}

View File

@@ -0,0 +1,24 @@
{ stdenv, fetchPypi, buildPythonPackage, gssapi, pyasn1 }:
buildPythonPackage rec {
version = "2.3";
pname = "ldap3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1b36lwil4iflk2ay8gi663abpnfm8id7qg4n3jkmmqbnc1sv6mn0";
};
buildInputs = [ gssapi ];
propagatedBuildInputs = [ pyasn1 ];
doCheck = false; # requires network
meta = with stdenv.lib; {
homepage = https://pypi.python.org/pypi/ldap3;
description = "A strictly RFC 4510 conforming LDAP V3 pure Python client library";
license = licenses.lgpl3;
};
}

View File

@@ -0,0 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi, pyasn1, isPyPy }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pyasn1-modules";
version = "0.1.5";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "1239h6h67vg0wazg2qgv6m3hdim2gs66pl89lbnayk55bbnkwc0x";
};
propagatedBuildInputs = [ pyasn1 ];
meta = with stdenv.lib; {
description = "A collection of ASN.1-based protocols modules";
homepage = https://pypi.python.org/pypi/pyasn1-modules;
license = licenses.bsd3;
platforms = platforms.unix; # same as pyasn1
};
}

View File

@@ -0,0 +1,19 @@
{ stdenv, buildPythonPackage, fetchPypi, }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pyasn1";
version = "0.3.4";
src = fetchPypi {
inherit pname version;
sha256 = "06hhy38jhwh95gpn8f03cr439273fsfsh4vhd5024r86nh5gyiir";
};
meta = with stdenv.lib; {
description = "ASN.1 tools for Python";
homepage = http://pyasn1.sourceforge.net/;
license = "mBSD";
platforms = platforms.unix; # arbitrary choice
};
}

View File

@@ -0,0 +1,31 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, isPyPy, libgit2, six, cffi }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pygit2";
version = "0.26.0";
src = fetchPypi {
inherit pname version;
sha256 = "1cbc488ra3kg7r3qky17ms0szi3cda2d96qfkv1l9djsy9hnvw57";
};
preConfigure = lib.optionalString stdenv.isDarwin ''
export DYLD_LIBRARY_PATH="${libgit2}/lib"
'';
propagatedBuildInputs = [ libgit2 six ] ++ lib.optional (!isPyPy) cffi;
preCheck = ''
# disable tests that require networking
rm test/test_repository.py
rm test/test_credentials.py
rm test/test_submodule.py
'';
meta = with lib; {
description = "A set of Python bindings to the libgit2 shared library";
homepage = https://pypi.python.org/pypi/pygit2;
license = licenses.gpl2;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, fetchurl }:
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch }:
buildPythonPackage (rec {
pname = "urwid";
@@ -11,10 +11,16 @@ buildPythonPackage (rec {
};
patches = [
(fetchurl {
url = https://github.com/urwid/urwid/commit/4b0ed8b6030450e6d99909a7c683e9642e546387.patch;
sha256 = "0ygghd6wzjqij5szg61l1dsk8b0yv8bwyj3bgxxj1lj4m17zsy5q";
})
# fix tests
(fetchpatch {
url = "https://github.com/urwid/urwid/commit/4b0ed8b6030450e6d99909a7c683e9642e546387.patch";
sha256 = "0azpn0ylbg8mfpr0y27n4lnq0ph75a4d4m9wdv3napnhf1vh9ahx";
})
# fix tests
(fetchpatch {
url = "https://github.com/floppym/urwid/commit/f68f2cf089cfd5ec45863baf59a91d5aeb0cf5c3.patch";
sha256 = "1b3vz7mrwz2bqvdwvbyv2j835f9lzapgw0j2km4sam76bxmgfpgq";
})
];
meta = with stdenv.lib; {