Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-02-13 12:33:29 +01:00
197 changed files with 4356 additions and 3415 deletions

View File

@@ -1,6 +1,6 @@
{ buildPythonPackage
, certbot
, nose
, pytest
, cryptography
, pyasn1
, pyopenssl
@@ -8,6 +8,7 @@
, josepy
, pytz
, requests
, requests-toolbelt
, six
, werkzeug
, mock
@@ -20,13 +21,13 @@ buildPythonPackage rec {
pname = "acme";
propagatedBuildInputs = [
cryptography pyasn1 pyopenssl pyRFC3339 pytz requests six werkzeug mock
ndg-httpsclient josepy
cryptography pyasn1 pyopenssl pyRFC3339 pytz requests requests-toolbelt six
werkzeug mock ndg-httpsclient josepy
];
checkInputs = [ nose ];
checkInputs = [ pytest ];
postUnpack = "sourceRoot=\${sourceRoot}/acme";
sourceRoot = "source/${pname}";
meta = certbot.meta // {
description = "ACME protocol implementation in Python";

View File

@@ -14,11 +14,11 @@
buildPythonPackage rec {
pname = "dateparser";
version = "0.7.0";
version = "0.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "940828183c937bcec530753211b70f673c0a9aab831e43273489b310538dff86";
sha256 = "42d51be54e74a8e80a4d76d1fa6e4edd997098fce24ad2d94a2eab5ef247193e";
};
checkInputs = [ nose mock parameterized six glibcLocales ];

View File

@@ -1,43 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, substituteAll,
isPy3k,
geos, gdal, pytz,
withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "2.0.10";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0292a7ad7d8ffc9cfc6a77f043d2e81f5bbc360c0c4a1686e130ef3432437d23";
};
patches = stdenv.lib.optionals withGdal [
(substituteAll {
src = ./1.10-gis-libs.template.patch;
geos = geos;
gdal = gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
})
];
# patch only $out/bin to avoid problems with starter templates (see #3134)
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
propagatedBuildInputs = [ pytz ];
# too complicated to setup
doCheck = false;
meta = with stdenv.lib; {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
license = licenses.bsd3;
maintainers = with maintainers; [ georgewhewell ];
};
}

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "filetype";
version = "1.0.3";
version = "1.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "74ccbd9ca5c95aad5665eee2f173fb1930226a12f05b0bc7380b1d456a86fcdf";
sha256 = "366c50d0211798e696626f125134163ac2fff25a70131eec80a1d1a6196c1027";
};
checkPhase = ''

View File

@@ -1,21 +1,17 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, nose
, coverage
}:
buildPythonPackage rec {
pname = "isbnlib";
version = "3.9.4";
version = "3.9.5";
# PyPI tarball is missing LICENSE file
# See https://github.com/xlcnd/isbnlib/pull/53
src = fetchFromGitHub {
owner = "xlcnd";
repo = "isbnlib";
rev = "v${version}";
sha256 = "0gc0k5khf34b4zz56a9zc3rscdhj3bx849lbzgmzpji30sbyy1fh";
src = fetchPypi {
inherit pname version;
sha256 = "f500a0561b83a2982d3424d640243d05bda9716f4fe9a655e331f3a07ca02710";
};
checkInputs = [

View File

@@ -0,0 +1,25 @@
{ stdenv, python3Packages, withTwitter ? false}:
python3Packages.buildPythonApplication rec {
pname = "mailman-rss";
version = "0.2.4";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "1brrik70jyagxa9l0cfmlxvqpilwj1q655bphxnvjxyganxf4c00";
};
propagatedBuildInputs = with python3Packages; [ dateutil future requests beautifulsoup4 ]
++ stdenv.lib.optional withTwitter python3Packages.twitter
;
# No tests in Pypi Tarball
doCheck = false;
meta = with stdenv.lib; {
description = "Mailman archive -> rss converter";
homepage = https://github.com/kyamagu/mailman-rss;
license = licenses.mit;
maintainers = with maintainers; [ samueldr ];
};
}

View File

@@ -1,6 +1,7 @@
{ stdenv, fetchPypi, python, buildPythonPackage, pycairo, backports_functools_lru_cache
, which, cycler, dateutil, nose, numpy, pyparsing, sphinx, tornado, kiwisolver
, freetype, libpng, pkgconfig, mock, pytz, pygobject3, functools32, subprocess32
, fetchpatch
, enableGhostscript ? false, ghostscript ? null, gtk3
, enableGtk2 ? false, pygtk ? null, gobject-introspection
, enableGtk3 ? false, cairo
@@ -47,9 +48,16 @@ buildPythonPackage rec {
++ stdenv.lib.optionals enableQt [ pyqt4 ]
++ stdenv.lib.optionals python.isPy2 [ functools32 subprocess32 ];
patches =
[ ./basedirlist.patch ] ++
stdenv.lib.optionals stdenv.isDarwin [ ./darwin-stdenv-2.2.3.patch ];
patches = [
./basedirlist.patch
# https://github.com/matplotlib/matplotlib/pull/12478
(fetchpatch {
name = "numpy-1.16-compat.patch";
url = "https://github.com/matplotlib/matplotlib/commit/2980184d092382a40ab21f95b79582ffae6e19d6.patch";
sha256 = "1c0wj28zy8s5h6qiavx9zzbhlmhjwpzbc3fyyw9039mbnqk0spg2";
})
] ++ stdenv.lib.optionals stdenv.isDarwin [ ./darwin-stdenv-2.2.3.patch ];
# Matplotlib tries to find Tcl/Tk by opening a Tk window and asking the
# corresponding interpreter object for its library paths. This fails if

View File

@@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, libGL
, libX11
}:
buildPythonPackage rec {
pname = "moderngl";
version = "5.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "0x8xblc3zybp7jw9cscpm4r5pmmilj9l4yi1rkxyf0y80kchlxq4";
};
disabled = !isPy3k;
buildInputs = [ libGL libX11 ];
# Tests need a display to run.
doCheck = false;
meta = with lib; {
homepage = https://github.com/cprogrammer1994/ModernGL;
description = "High performance rendering for Python 3";
license = licenses.mit;
platforms = platforms.linux; # should be mesaPlatforms, darwin build breaks.
maintainers = with maintainers; [ c0deaddict ];
};
}

View File

@@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "pybind11";
version = "2.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "1kz1z2cg3q901q9spkdhksmcfiskaghzmbb9ivr5mva856yvnak4";
};
# Current PyPi version does not include test suite
doCheck = false;
meta = {
homepage = https://github.com/pybind/pybind11;
description = "Seamless operability between C++11 and Python";
longDescription = ''
Pybind11 is a lightweight header-only library that exposes
C++ types in Python and vice versa, mainly to create Python
bindings of existing C++ code.
'';
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.yuriaisaka ];
};
}

View File

@@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
{ lib, fetchFromGitHub, fetchpatch, buildPythonPackage, cython, slurm }:
buildPythonPackage rec {
pname = "pyslurm";
@@ -11,6 +11,19 @@ buildPythonPackage rec {
sha256 = "1rymx106xa99wd4n44s7jw0w41spg39y1ji4fgn01yk7wjfrdrwg";
};
# Needed for patch below to apply
prePatch = ''
sed -i -e '/__max_slurm_hex_version__ = "0x1208/c__max_slurm_hex_version__ = "0x120804"' setup.py
'';
patches = [
# Implements a less strict slurm version check
(fetchpatch {
url = "https://github.com/PySlurm/pyslurm/commit/d3703f2d58b5177d29092fe1aae1f7a96da61765.diff";
sha256 = "1s41z9bhzhplgg08p1llc3i8zw20r1479s04y0l1vx0ak51b6w0k";
})
];
buildInputs = [ cython slurm ];
setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];

View File

@@ -7,12 +7,12 @@
}:
buildPythonPackage rec {
version = "4.4.8";
version = "4.4.9";
pname = "pysnmp";
src = fetchPypi {
inherit pname version;
sha256 = "1c42qicrh56m49374kxna2s2nmdwna3yqgnz16frzj0dw7vxrrhk";
sha256 = "0h844s9p67z50bv83wdyf577759jg0xrj99fv4yrcvhjh2byblfm";
};
# NameError: name 'mibBuilder' is not defined
@@ -21,9 +21,9 @@ buildPythonPackage rec {
propagatedBuildInputs = [ pyasn1 pycryptodomex pysmi ];
meta = with stdenv.lib; {
homepage = http://pysnmp.sf.net;
homepage = http://snmplabs.com/pysnmp/index.html;
description = "A pure-Python SNMPv1/v2c/v3 library";
license = licenses.bsd2;
maintainers = with maintainers; [ koral ];
maintainers = with maintainers; [ primeos koral ];
};
}

View File

@@ -1,8 +1,8 @@
{ stdenv, buildPythonPackage, fetchPypi, glibcLocales, mock, pytest, botocore,
testfixtures, pillow, six, twisted, w3lib, lxml, queuelib, pyopenssl,
service-identity, parsel, pydispatcher, cssselect, lib, fetchpatch }:
service-identity, parsel, pydispatcher, cssselect, lib }:
buildPythonPackage rec {
version = "1.5.1";
version = "1.6.0";
pname = "Scrapy";
checkInputs = [ glibcLocales mock pytest botocore testfixtures pillow ];
@@ -16,25 +16,21 @@ buildPythonPackage rec {
# root and readonly. As a consequence scrapy can't edit the
# project templates.
./permissions-fix.patch
# fix python37 issues. Remove with the next release
(fetchpatch {
url = https://github.com/scrapy/scrapy/commit/f4f39057cbbfa4daf66f82061e57101b88d88d05.patch;
sha256 = "1f761qkji362i20i5bzcxz44sihvl29prm02i5l2xyhgl1hp91hv";
})
];
LC_ALL="en_US.UTF-8";
# Disable doctest plugin—enabled in the shipped pytest.ini—because it causes pytest to hang
# Ignore proxy tests because requires mitmproxy
# Ignore test_retry_dns_error because tries to resolve an invalid dns and weirdly fails with "Reactor was unclean"
# Ignore xml encoding test on darwin because lxml can't find encodings https://bugs.launchpad.net/lxml/+bug/707396
checkPhase = ''
pytest --ignore=tests/test_linkextractors_deprecated.py --ignore=tests/test_proxy_connect.py --deselect tests/test_crawl.py::CrawlTestCase::test_retry_dns_error ${lib.optionalString stdenv.isDarwin "--deselect tests/test_utils_iterators.py::LxmlXmliterTestCase::test_xmliter_encoding"}
pytest -p no:doctest --ignore=tests/test_linkextractors_deprecated.py --ignore=tests/test_proxy_connect.py --deselect tests/test_crawl.py::CrawlTestCase::test_retry_dns_error ${lib.optionalString stdenv.isDarwin "--deselect tests/test_utils_iterators.py::LxmlXmliterTestCase::test_xmliter_encoding"}
'';
src = fetchPypi {
inherit pname version;
sha256 = "5a398bf6818f87dcc817c919408a195f19ba46414ae12f259119336cfa862bb6";
sha256 = "558dfd10ac53cb324ecd7eefd3eac412161c7507c082b01b0bcd2c6e2e9f0766";
};
postInstall = ''

View File

@@ -42,6 +42,8 @@ buildPythonPackage rec {
inherit pname sha256 version;
};
__darwinAllowLocalNetworking = true;
meta = {
description = "A web framework and asynchronous networking library";
homepage = http://www.tornadoweb.org/;