Merge branch 'master' into staging-next

This commit is contained in:
Jan Tojnar
2019-12-25 05:15:06 +01:00
492 changed files with 22222 additions and 7240 deletions

View File

@@ -35,7 +35,11 @@ let
'';
# Theano spews warnings and disabled flags if the compiler isn't named g++
cxx_compiler = wrapped "g++" "\\$HOME/.theano"
cxx_compiler_name =
if stdenv.cc.isGNU then "g++" else
if stdenv.cc.isClang then "clang++" else
throw "Unknown C++ compiler";
cxx_compiler = wrapped cxx_compiler_name "\\$HOME/.theano"
( stdenv.lib.optional cudaSupport libgpuarray_
++ stdenv.lib.optional cudnnSupport cudnn );

View File

@@ -1,5 +1,6 @@
{ stdenv
, lib
, isPy3k
, buildPythonPackage
, fetchPypi
, Babel
@@ -7,22 +8,21 @@
buildPythonPackage rec {
pname = "babelgladeextractor";
version = "0.6.1";
version = "0.6.3";
src = fetchPypi {
pname = "BabelGladeExtractor";
inherit version;
extension = "tar.bz2";
sha256 = "1jhs12pliz54dbnigib1h8ywfzsj1g32c1vhspvg46f5983nvf93";
sha256 = "12i2i97wai5vv5h522rj6pfcdsfyrkgmjqc699m5v4af0yy3rqsq";
};
propagatedBuildInputs = [
Babel
];
# Tests missing
# https://github.com/gnome-keysign/babel-glade/issues/5
doCheck = false;
# SyntaxError: Non-ASCII character '\xc3' in file /build/BabelGladeExtractor-0.6.3/babelglade/tests/test_translate.py on line 20, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
doCheck = isPy3k;
meta = with lib; {
homepage = "https://github.com/gnome-keysign/babel-glade";

View File

@@ -4,14 +4,14 @@
buildPythonPackage rec {
pname = "cookiecutter";
version = "1.6.0";
version = "1.7.0";
# not sure why this is broken
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "1316a52e1c1f08db0c9efbf7d876dbc01463a74b155a0d83e722be88beda9a3e";
sha256 = "1bh4vf45q9nanmgwnw7m0gxirndih9yyz5s0y2xbnlbcqbhrg6a7";
};
checkInputs = [ pytest pytestcov pytest-mock freezegun ];

View File

@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "Django";
version = "1.11.24";
version = "1.11.27";
src = fetchurl {
url = "https://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
sha256 = "1qw97zcsnbnn9dqad1kps48vfaifdkvqb8c3vld6nnvp7x2jfp11";
sha256 = "1f39c5af0lkls6mqw1fd2r9rf4mbshchqjy900ab3lcshs1i6490";
};
patches = stdenv.lib.optionals withGdal [

View File

@@ -6,13 +6,13 @@
buildPythonPackage rec {
pname = "Django";
version = "2.2.8";
version = "2.2.9";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "183wmqgkspb9vk1dc42h5s2h31gjpw68vv6ywbvpljvakiplzbd4";
sha256 = "199mwqs6apdxjm4afqjbvqs98j2927rv2wbgy5vzvqwjhzviyak6";
};
patches = stdenv.lib.optional withGdal

View File

@@ -1,14 +1,14 @@
{ lib, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage rec {
version = "1.3.1";
version = "1.3.3";
pname = "elementpath";
src = fetchFromGitHub {
owner = "sissaschool";
repo = "elementpath";
rev = "v${version}";
sha256 = "0060cd49m0q25k7anzyiz76360hag2f9j5hvqhbmscivf1ssckzq";
sha256 = "05wplh836ffwhncf5rpdnz4g1b3mqw7jiy83352nw4x3aak4ifbr";
};
# avoid circular dependency with xmlschema which directly depends on this

View File

@@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, pkgconfig
, gmp
@@ -14,15 +15,29 @@
buildPythonPackage rec {
pname = "fpylll";
version = "0.5.0dev";
version = "0.5.1dev";
src = fetchFromGitHub {
owner = "fplll";
repo = "fpylll";
rev = version;
sha256 = "091zqgsqd5cqma1hvimkq5xpr9f1jw80v9m2fr6k9hvssqjzgnab";
sha256 = "15vdfgx448mr1nf054h7lr2j3dd35fsfhikqzrh9zsng8n12hxa5";
};
patches = [
# two patches to fix the testsuite on aarch64 (https://github.com/fplll/fpylll/issues/162)
(fetchpatch {
url = "https://github.com/fplll/fpylll/commit/d5809a8fdb86b2693b1fa94e655bbbe4ad80e286.patch";
name = "less-precision-in-tests.patch";
sha256 = "0vkvi25nwwvk5r4a4xmkbf060di4hjq32bys75l2hsaysxmk93nz";
})
(fetchpatch {
url = "https://github.com/fplll/fpylll/commit/b5b146a010d50da219a313adc4b6f7deddcc146b.patch";
name = "dont-hardcode-precision.patch";
sha256 = "1rsbwh90i1j5p2rp6jd5n25v1jzw1n8728fzz1lhb91zmk0hlxc9";
})
];
buildInputs = [
gmp
pari

View File

@@ -4,13 +4,13 @@
buildPythonPackage rec {
pname = "geopandas";
version = "0.6.1";
version = "0.6.2";
src = fetchFromGitHub {
owner = "geopandas";
repo = "geopandas";
rev = "v${version}";
sha256 = "0bdgphw43m2nrgcp83j1pnxknnzahm2zmdr55hyz3jjkva7m6dpk";
sha256 = "1wy2n204vf5bbswgma205lr1is7nnxr385m4x3v7pra05bq8ag3q";
};
checkInputs = [ pytest Rtree ];

View File

@@ -4,14 +4,14 @@
buildPythonPackage rec {
pname = "internetarchive";
version = "1.8.1";
version = "1.9.0";
# Can't use pypi, data files for tests missing
src = fetchFromGitHub {
owner = "jjjake";
repo = "internetarchive";
rev = "v${version}";
sha256 = "1fdb0kr9hzgyh0l8d02khcjpsgyd63nbablhc49ncdsav3dhhr3f";
sha256 = "1h344c04ipzld4s7xk8d84f80samjjlgzvv3y8zsv0n1c895gymb";
};
propagatedBuildInputs = [
@@ -24,7 +24,8 @@ buildPythonPackage rec {
args
schema
setuptools
] ++ lib.optional (!isPy3k) backports_csv;
backports_csv
];
checkInputs = [ pytest responses glibcLocales ];

View File

@@ -12,6 +12,10 @@ buildPythonPackage rec {
propagatedBuildInputs = [ six attrs twisted pyopenssl service-identity autobahn ];
checkInputs = [ treq mock ];
checkPhase = ''
trial wormhole_mailbox_server
'';
meta = with stdenv.lib; {
description = "Securely transfer data between computers";
homepage = https://github.com/warner/magic-wormhole-mailbox-server;

View File

@@ -18,6 +18,7 @@
, mock
, magic-wormhole-transit-relay
, magic-wormhole-mailbox-server
, isPy27
}:
buildPythonPackage rec {
@@ -55,6 +56,9 @@ buildPythonPackage rec {
description = "Securely transfer data between computers";
homepage = https://github.com/warner/magic-wormhole;
license = licenses.mit;
# Currently broken on Python 2.7. See
# https://github.com/NixOS/nixpkgs/issues/71826
broken = isPy27;
maintainers = with maintainers; [ asymmetric ];
};
}

View File

@@ -4,14 +4,14 @@
buildPythonPackage rec {
pname = "mpv";
version = "0.3.10";
version = "0.4.5";
disabled = isPy27;
src = fetchFromGitHub {
owner = "jaseg";
repo = "python-mpv";
rev = "v${version}";
sha256 = "1w67rrxsvxl7glh5lri7c5hn1011jij1yh1dn50dxlz79n4h51b5";
sha256 = "1y80c2k4s42lzvm5dz8wi186i7rsn1vs1wn30hp6v6vs62fb91fi";
};
buildInputs = [ mpv ];

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, twisted }:
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi, isPy3k, twisted }:
buildPythonPackage rec {
pname = "Nevow";
@@ -10,6 +10,14 @@ buildPythonPackage rec {
sha256 = "2299a0d2a0c1312040705599d5d571acfea74df82b968c0b9264f6f45266cf6e";
};
patches = [
# Fix builds against recent Twisted.
(fetchpatch {
url = "https://github.com/twisted/nevow/commit/f1b366f1a73009b6a1df12fa6f4dc464c564c944.patch";
sha256 = "147fibcbqh715in8cbkp7jlkh4b3qvn95v1mv9si0ln1747wbby2";
})
];
propagatedBuildInputs = [ twisted ];
checkInputs = [ twisted ];

View File

@@ -1,23 +1,20 @@
{ stdenv, buildPythonPackage , fetchFromGitHub
, bashInteractive , urlgrabber, m2crypto
}:
{ stdenv, buildPythonPackage , fetchFromGitHub , bashInteractive , urlgrabber, m2crypto, rpm }:
buildPythonPackage rec {
pname = "osc";
version = "0.165.4";
version = "0.167.1";
src = fetchFromGitHub {
owner = "openSUSE";
repo = "osc";
rev = version;
sha256 = "1f8q65wlgchzwzarwrv6a0p60gw0ykpf4d5s7cks835hyawgcbyl";
sha256 = "0f3c6mzvk9yjicwfdh47j4s2l1wrfgpa6lmqdchasdqfsacps4r6";
};
buildInputs = [ bashInteractive ]; # needed for bash-completion helper
checkInputs = [ rpm ];
propagatedBuildInputs = [ urlgrabber m2crypto ];
doCheck = false;
postInstall = ''
ln -s $out/bin/osc-wrapper.py $out/bin/osc
install -D -m444 osc.fish $out/etc/fish/completions/osc.fish
@@ -32,6 +29,7 @@ buildPythonPackage rec {
'';
meta = with stdenv.lib; {
homepage = "https://github.com/openSUSE/osc";
description = "opensuse-commander with svn like handling";
maintainers = [ maintainers.peti ];
license = licenses.gpl2;

View File

@@ -0,0 +1,24 @@
{ buildPythonPackage
, fetchFromGitHub
, stdenv
}:
buildPythonPackage rec {
pname = "pcpp";
version = "1.21";
src = fetchFromGitHub {
owner = "ned14";
repo = "pcpp";
rev = "v${version}";
sha256 = "0k52qyxzdngdhyn4sya2qn1w1a4ll0mcla4h4gb1v91fk4lw25dm";
fetchSubmodules = true;
};
meta = with stdenv.lib; {
homepage = https://github.com/ned14/pcpp;
description = "A C99 preprocessor written in pure Python";
license = licenses.bsd0;
maintainers = with maintainers; [ rakesh4g ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, buildPythonPackage, pkgconfig, glib }:
{ stdenv, fetchurl, python, buildPythonPackage, pkgconfig, glib, isPy3k }:
buildPythonPackage rec {
pname = "pygobject";
@@ -25,7 +25,7 @@ buildPythonPackage rec {
# same site-packages: we need a pth file for both. pygtk.py would be
# used to select a specific version, in our setup it should have no
# effect, but we leave it in case somebody expects and calls it.
postInstall = ''
postInstall = stdenv.lib.optionalString (!isPy3k) ''
mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${pname}-${version}.pth}
# Prevent wrapping of codegen files as these are meant to be

View File

@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pyutilib
, appdirs
, ply
@@ -11,6 +12,7 @@
buildPythonPackage rec {
pname = "pyomo";
version = "5.6.1";
disabled = isPy27; # unable to import pyutilib.th
src = fetchPypi {
pname = "Pyomo";

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "pyspotify";
version = "2.0.5";
version = "2.1.2";
src = fetchurl {
url = "https://github.com/mopidy/pyspotify/archive/v${version}.tar.gz";
sha256 = "1ilbz2w1gw3f1bpapfa09p84dwh08bf7qcrkmd3aj0psz57p2rls";
sha256 = "0g3dvwpaz7pqrdx53kyzkh31arlmdzz1hb7jp8m488lbsf47w6nd";
};
propagatedBuildInputs = [ cffi ];

View File

@@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "pyutilib";
version = "5.7.1";
version = "5.7.2";
src = fetchPypi {
pname = "PyUtilib";
inherit version;
sha256 = "1m5ijc5qmv8hg4yj496ix77hbcf7ylk4sa98ym53sfsyz0mg3kxr";
sha256 = "0bdb5hlj6kyb9m3xnpxzasfv5psnxfj21qx6md8ym8zkcqyq1qs5";
};
propagatedBuildInputs = [

View File

@@ -6,14 +6,14 @@
buildPythonPackage rec {
pname = "rasterio";
version = "1.1.1";
version = "1.1.2";
# Pypi doesn't ship the tests, so we fetch directly from GitHub
src = fetchFromGitHub {
owner = "mapbox";
repo = "rasterio";
rev = version;
sha256 = "1d0y16c5da252nj3pbdjwbzmd5kmh533s8jwlvg3aappa7h7qc1s";
sha256 = "12szhfify7wn02cbiz9xapwfyp7bg0zm2ja9wq4jyaz5ijy6rm45";
};
checkInputs = [ boto3 pytest pytestcov packaging hypothesis ] ++ lib.optional (!isPy3k) mock;

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "telethon";
version = "1.10.8";
version = "1.10.9";
src = fetchPypi {
inherit version;
pname = "Telethon";
sha256 = "1v0zq6kdvcff6pygi8syylqndamz884gaby4v16p5brg5rz6k25g";
sha256 = "16qb5hv8kh4plic1155ky9b88xz9iahhv1s3h47678hl7mjy2jc7";
};
propagatedBuildInputs = [

View File

@@ -13,14 +13,14 @@
buildPythonPackage rec {
pname = "tiledb";
version = "0.5.0";
version = "0.5.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "TileDB-Inc";
repo = "TileDB-Py";
rev = version;
sha256 = "1c9wl207c8jz0695gy8p6bxywyd1k7wmczcfl7s0hlbknliamvyx";
sha256 = "0y7llvy943fviayjny8xybvn3sm1ikjvazqk172ls90lcpr8rlr1";
};
nativeBuildInputs = [

View File

@@ -3,13 +3,13 @@
buildPythonPackage rec {
pname = "twilio";
version = "6.33.1";
version = "6.35.1";
# tests not included in PyPi, so fetch from github instead
src = fetchFromGitHub {
owner = "twilio";
repo = "twilio-python";
rev = version;
sha256 = "1k8hf4azgjzb4fifclzi8gj6v22368jk3y9f7f9qhq9ina7ilycj";
sha256 = "10a1hqvxn0w6z696ay1bbxra6qn8bxg87d6g9iryd2hjnn8sfh4b";
};
buildInputs = [ nose mock ];

View File

@@ -1,6 +1,6 @@
{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted
, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof
, GeoIP}:
, GeoIP, isPy27}:
buildPythonPackage rec {
pname = "txtorcon";
@@ -28,6 +28,9 @@ buildPythonPackage rec {
description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions";
homepage = https://github.com/meejah/txtorcon;
maintainers = with lib.maintainers; [ jluttine ];
# Currently broken on Python 2.7. See
# https://github.com/NixOS/nixpkgs/issues/71826
broken = isPy27;
license = lib.licenses.mit;
};
}

View File

@@ -0,0 +1,51 @@
{ buildPythonPackage
, chardet
, configparser
, fetchFromGitHub
, future
, isPy27
, lib
, mock
, netaddr
, pkgs
, pyparsing
, pycurl
, pytest
, six
}:
buildPythonPackage rec {
pname = "wfuzz";
version = "2.4.2";
src = fetchFromGitHub {
owner = "xmendez";
repo = pname;
rev = "v.${version}";
sha256 = "15dihrc7jsvpxcmb4fp254s633mkjm7ksjfkr9pqaai49qmnddyf";
};
buildInputs = [ pyparsing configparser ];
propagatedBuildInputs = [
chardet
future
pycurl
six
];
checkInputs = [ netaddr pytest ] ++ lib.optionals isPy27 [ mock ];
# Skip tests requiring a local web server.
checkPhase = ''
HOME=$TMPDIR pytest \
tests/test_{moduleman,filterintro,reqresp,api,clparser,dotdict}.py
'';
meta = with lib; {
description = "Web content fuzzer, to facilitate web applications assessments";
homepage = "https://wfuzz.readthedocs.io";
license = licenses.gpl2;
maintainers = with maintainers; [ pamplemousse ];
};
}

View File

@@ -4,14 +4,14 @@
}:
buildPythonPackage rec {
version = "1.0.16";
version = "1.0.17";
pname = "xmlschema";
src = fetchFromGitHub {
owner = "sissaschool";
repo = "xmlschema";
rev = "v${version}";
sha256 = "0mxvpafkaxib3qiz3zl7fbsgjaq9hbx4kb0w646azwhg7n7nxghj";
sha256 = "0wbz243q8028ljnh6nq3kxawiwpg5p2bwg1b23ibf7zbrhazcj4k";
};
propagatedBuildInputs = [ elementpath ];