Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2018-10-27 09:04:53 +02:00
205 changed files with 3215 additions and 2188 deletions

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "adal";
version = "1.0.2";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "4c020807b3f3cfd90f59203077dd5e1f59671833f8c3c5028ec029ed5072f9ce";
sha256 = "1hgm62wil1avc3h0dwbks2v6l19xfsjl3azai16llsyp70y92lms";
};
propagatedBuildInputs = [ requests pyjwt dateutil ];

View File

@@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "astropy";
version = "3.0.4";
version = "3.0.5";
disabled = !isPy3k; # according to setup.py
@@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "f5d37d20632ba74bd0b12a85179c12f64a9ea037ffc916d8a2de3be4f4656c76";
sha256 = "0xldn6mh97pnkq915bacj8my9gy2kx58rrdm44496qla5i1gzlc2";
};
propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires

View File

@@ -1,14 +1,14 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, augeas, cffi }:
buildPythonPackage rec {
pname = "augeas";
version = "1.0.2";
version = "1.0.3";
name = pname + "-" + version;
src = fetchFromGitHub {
owner = "hercules-team";
repo = "python-augeas";
rev = "v${version}";
sha256 = "1xk51m58ym3qpf0z5y98kzxb5jw7s92rca0v1yflj422977najxh";
sha256 = "1fb904ym8g8hkd82zlibzk6wrldnfd5v5d0rkynsy1zlhcylq4f6";
};
# TODO: not very nice!

View File

@@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, numpy
}:
buildPythonPackage rec {
version = "0.3.0";
pname = "awkward";
src = fetchPypi {
inherit pname version;
sha256 = "fc3080c66987f2a03aa9ba0809e51227eb7aa34198da4b1ee4deb95356409693";
};
propagatedBuildInputs = [ numpy ];
meta = with stdenv.lib; {
homepage = https://github.com/scikit-hep/awkward-array;
description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -0,0 +1,106 @@
From c636f0cc386c9ded9f31947bbd74affccc93c21a Mon Sep 17 00:00:00 2001
From: yoch <yoch.melka@gmail.com>
Date: Mon, 14 May 2018 21:55:00 +0300
Subject: [PATCH] Adding buffer protocol support for Python 3
---
bitarray/_bitarray.c | 12 ++++++++++--
bitarray/test_bitarray.py | 14 +++++++-------
2 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/bitarray/_bitarray.c b/bitarray/_bitarray.c
index d2c19cb..be6b379 100644
--- a/bitarray/_bitarray.c
+++ b/bitarray/_bitarray.c
@@ -48,7 +48,7 @@ int PyIndex_Check(PyObject *o)
#define Py_SIZE(ob) (((PyVarObject *) (ob))->ob_size)
#endif
-#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 7
+#if PY_MAJOR_VERSION == 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 7)
/* (new) buffer protocol */
#define WITH_BUFFER
#endif
@@ -2787,6 +2787,8 @@ static PyTypeObject BitarrayIter_Type = {
/********************* Bitarray Buffer Interface ************************/
#ifdef WITH_BUFFER
+
+#if PY_MAJOR_VERSION == 2
static Py_ssize_t
bitarray_buffer_getreadbuf(bitarrayobject *self,
Py_ssize_t index, const void **ptr)
@@ -2831,6 +2833,8 @@ bitarray_buffer_getcharbuf(bitarrayobject *self,
return Py_SIZE(self);
}
+#endif
+
static int
bitarray_getbuffer(bitarrayobject *self, Py_buffer *view, int flags)
{
@@ -2857,14 +2861,18 @@ bitarray_releasebuffer(bitarrayobject *self, Py_buffer *view)
}
static PyBufferProcs bitarray_as_buffer = {
+#if PY_MAJOR_VERSION == 2 // old buffer protocol
(readbufferproc) bitarray_buffer_getreadbuf,
(writebufferproc) bitarray_buffer_getwritebuf,
(segcountproc) bitarray_buffer_getsegcount,
(charbufferproc) bitarray_buffer_getcharbuf,
+#endif
(getbufferproc) bitarray_getbuffer,
(releasebufferproc) bitarray_releasebuffer,
};
+
#endif /* WITH_BUFFER */
+
/************************** Bitarray Type *******************************/
static PyTypeObject Bitarraytype = {
@@ -2898,7 +2906,7 @@ static PyTypeObject Bitarraytype = {
0, /* tp_as_buffer */
#endif
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_WEAKREFS
-#ifdef WITH_BUFFER
+#if defined(WITH_BUFFER) && PY_MAJOR_VERSION == 2
| Py_TPFLAGS_HAVE_NEWBUFFER
#endif
, /* tp_flags */
diff --git a/bitarray/test_bitarray.py b/bitarray/test_bitarray.py
index 44de2f0..b72b554 100644
--- a/bitarray/test_bitarray.py
+++ b/bitarray/test_bitarray.py
@@ -2113,10 +2113,10 @@ def test_read1(self):
a = bitarray('01000001' '01000010' '01000011', endian='big')
v = memoryview(a)
self.assertEqual(len(v), 3)
- self.assertEqual(v[0], 'A')
- self.assertEqual(v[:].tobytes(), 'ABC')
+ #self.assertEqual(v[0], 'A')
+ self.assertEqual(v[:].tobytes(), b'ABC')
a[13] = 1
- self.assertEqual(v[:].tobytes(), 'AFC')
+ self.assertEqual(v[:].tobytes(), b'AFC')
def test_read2(self):
a = bitarray([randint(0, 1) for d in range(8000)])
@@ -2131,14 +2131,14 @@ def test_write(self):
a.setall(0)
v = memoryview(a)
self.assertFalse(v.readonly)
- v[50000] = '\xff'
+ v[50000] = 255 if is_py3k else '\xff'
self.assertEqual(a[399999:400009], bitarray('0111111110'))
a[400003] = 0
self.assertEqual(a[399999:400009], bitarray('0111011110'))
- v[30001:30004] = 'ABC'
- self.assertEqual(a[240000:240040].tobytes(), '\x00ABC\x00')
+ v[30001:30004] = b'ABC'
+ self.assertEqual(a[240000:240040].tobytes(), b'\x00ABC\x00')
-if sys.version_info[:2] == (2, 7):
+if sys.version_info[:2] >= (2, 7):
tests.append(BufferInterfaceTests)
# ---------------------------------------------------------------------------

View File

@@ -0,0 +1,21 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
version = "0.8.3";
pname = "bitarray";
src = fetchPypi {
inherit pname version;
sha256 = "0pl9p4j3dhlyffsqra6h28q7jph6v3hgppg786lkmnqdh45x6305";
};
# Delete once https://github.com/ilanschnell/bitarray/pull/55 is merged
patches = [ ./0001-Buffer-Protocol-Py3.patch ];
meta = with lib; {
description = "Efficient arrays of booleans";
homepage = https://github.com/ilanschnell/bitarray;
license = licenses.psfl;
maintainers = [ maintainers.bhipple ];
};
}

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "bjoern";
version = "2.2.2";
version = "2.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "1w5z9agacci4shmkg9gh46ifj2a724rrgbykdv14830f7jq3dcmi";
sha256 = "1lbwqmqrl32jlfzhffxsb1fm7xbbjgbhjr21imk656agvpib2wx2";
};
buildInputs = [ libev ];

View File

@@ -33,11 +33,11 @@
buildPythonPackage rec {
pname = "bokeh";
version = "0.13.0";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "d0cf59774d7c74b7173b82ce36bde35b8fe9da0f960364ba3c4df0d1fbd874d6";
sha256 = "1h1g3jw53srcvbgl1jb9p2rfi7kjz6c91hbqxfbr3s2wx1f67ahn";
};
disabled = isPyPy;
@@ -48,6 +48,7 @@ buildPythonPackage rec {
checkInputs = [ mock pytest pillow selenium ];
propagatedBuildInputs = [
pillow
flask
jinja2
markupsafe

View File

@@ -15,11 +15,11 @@ let
in buildPythonPackage rec {
pname = "celery";
version = "4.2.0";
version = "4.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "ff727c115533edbc7b81b2b4ba1ec88d1c2fc4836e1e2f4c3c33a76ff53e5d7f";
sha256 = "0y66rz7z8dfcgs3s0qxmdddlaq57bzbgxgfz896nbp14grkv9nkp";
};
# Skip test_RedisBackend.test_timeouts_in_url_coerced

View File

@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "Chameleon";
version = "2.25";
version = "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0va95cml7wfjpvgj3dc9xdn8psyjh3zbk6v51b0hcqv2fzh409vb";
sha256 = "1a83jf211mqjhgbd3abqyrn4mp4vb077ql8fydmv80xg3whrf3yb";
};
meta = with stdenv.lib; {

View File

@@ -1,16 +1,16 @@
{ lib, buildPythonPackage, fetchPypi
, translationstring, iso8601 }:
, translationstring, iso8601, enum34 }:
buildPythonPackage rec {
pname = "colander";
version = "1.4";
version = "1.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "e20e9acf190e5711cf96aa65a5405dac04b6e841028fc361d953a9923dbc4e72";
sha256 = "18ah4cwwxnpm6qxi6x9ipy51dal4spd343h44s5wd01cnhgrwsyq";
};
propagatedBuildInputs = [ translationstring iso8601 ];
propagatedBuildInputs = [ translationstring iso8601 enum34 ];
meta = with lib; {
description = "A simple schema-based serialization and deserialization library";

View File

@@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
version = "0.1.0";
pname = "dj-email-url";
src = fetchPypi {
inherit pname version;
sha256 = "84f32673156f58d740a14cab09f04ca92a65b2c8881b60e31e09e67d7853e544";
};
checkPhase = ''
${python.interpreter} test_dj_email_url.py
'';
# tests not included with pypi release
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/migonzalvar/dj-email-url;
description = "Use an URL to configure email backend settings in your Django Application";
license = licenses.bsd0;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -0,0 +1,23 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
version = "0.1";
pname = "dj-search-url";
src = fetchPypi {
inherit pname version;
sha256 = "424d1a5852500b3c118abfdd0e30b3e0016fe68e7ed27b8553a67afa20d4fb40";
};
meta = with stdenv.lib; {
homepage = https://github.com/dstufft/dj-search-url;
description = "Use Search URLs in your Django Haystack Application";
license = licenses.bsd0;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
version = "3.0.0";
pname = "django-cache-url";
src = fetchPypi {
inherit pname version;
sha256 = "235950e2d7cb16164082167c2974301e2f0fb2313d40bfacc9d24f5b09c3514b";
};
checkInputs = [ pytest ];
checkPhase = ''
pytest tests
'';
# tests not included with pypi release
doCheck = false;
meta = with stdenv.lib; {
homepage = http://github.com/ghickman/django-cache-url;
description = "Use Cache URLs in your Django application";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -0,0 +1,41 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django-discover-runner
, mock
, dj-database-url
, dj-email-url
, dj-search-url
, django-cache-url
, six
, django
}:
buildPythonPackage rec {
version = "2.1";
pname = "django-configurations";
src = fetchPypi {
inherit pname version;
sha256 = "71d9acdff33aa034f0157b0b3d23629fe0cd499bf4d0b6d699b9ca0701d952e8";
};
checkInputs = [ django-discover-runner mock dj-database-url dj-email-url dj-search-url django-cache-url six ];
checkPhase = ''
export PYTHONPATH=.:$PYTHONPATH
export DJANGO_SETTINGS_MODULE="tests.settings.main"
export DJANGO_CONFIGURATION="Test"
${django}/bin/django-admin.py test
'';
# django.core.exceptions.ImproperlyConfigured: django-configurations settings importer wasn't correctly installed
doCheck = false;
meta = with stdenv.lib; {
homepage = https://django-configurations.readthedocs.io/;
description = "A helper for organizing Django settings";
license = licenses.bsd0;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
}:
buildPythonPackage rec {
version = "1.0";
pname = "django-discover-runner";
src = fetchPypi {
inherit pname version;
sha256 = "0ba91fe722c256bcbfdeb36fac7eac0f27e5bfda55d98c4c1cf9ab62b5b084fe";
};
propagatedBuildInputs = [ django ];
# tests not included with release
doCheck = false;
meta = with stdenv.lib; {
homepage = http://github.com/jezdez/django-discover-runner;
description = "A Django test runner based on unittest2's test discovery";
license = licenses.bsd0;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "django-extensions";
version = "2.0.7";
version = "2.1.3";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "1xf84wq7ab1zfb3nmf4qgw6mjf5xafjwr3175dyrqrrn6cpvcr4a";
sha256 = "0ns1m9sdkcbbz84wvzgxa4f8hf4a8z656jzwx4bw8np9kh96zfjy";
};
postPatch = ''

View File

@@ -3,7 +3,7 @@
}:
buildPythonPackage rec {
pname = "django-hijack";
version = "2.1.5";
version = "2.1.9";
name = pname + "-" + version;
# the pypi packages don't include everything required for the tests
@@ -11,7 +11,7 @@ buildPythonPackage rec {
owner = "arteria";
repo = "django-hijack";
rev = "v${version}";
sha256 = "1paiyxhc034336xcd9yzf3azpsapsv26j7w2baxiby71z2hhg0sj";
sha256 = "109xi93xj37ycdsvainybhg89pcb5sawv6w80px4r6fjvaq4732c";
};
checkInputs = [ django_nose ];

View File

@@ -2,7 +2,7 @@
buildPythonPackage rec {
pname = "django-picklefield";
version = "1.0.0";
version = "1.1.0";
meta = {
description = "A pickled object field for Django";
@@ -12,6 +12,6 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "61e3ba7f6df82d8df9e6be3a8c55ef589eb3bf926c3d25d2b7949b07eae78354";
sha256 = "174zlsajpjflrf3jgn0wp5svnxfyrjadk4s9jb45vzjqcmffwzyf";
};
}

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "django-environ";
version = "0.4.0";
version = "0.4.4";
src = fetchPypi {
inherit pname version;
sha256 = "0i32vsgk1xmwpi7i6f6v5hg653y9dl0fsz5qmv94skz6hwgm5kvh";
sha256 = "1ylw16v5z46ckn8ynbx2zjam6nvipl0xxcr6icrf6driv02q8bzf";
};
# The testsuite fails to modify the base environment

View File

@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "elpy";
version = "1.9.0";
version = "1.25.0";
src = fetchPypi {
inherit pname version;
sha256 = "419f7b05b19182bc1aedde1ae80812c1534e59a0493476aa01ea819e76ba26f0";
sha256 = "10n20lw7n728ahnfrx03vgx9zim7jb8s1zqhw8yivksm9c1a6i12";
};
propagatedBuildInputs = [ flake8 autopep8 jedi importmagic ]

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "evdev";
version = "1.0.0";
version = "1.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "be0288ef1125bf1c539bb8f3079ef4aa5fb813af28f0c5294a4e744ee554398a";
sha256 = "0l837gm9cjdp3lybnam38ip0q3n1xy0j6vzgx11hdrr0ps8p5mid";
};
buildInputs = [ linuxHeaders ];

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "fido2";
version = "0.3.0";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "0ddbhg4nsabi9w66l8vkr0i5r80jqihlic5yrdl3v1aqahvxph1j";
sha256 = "12245b16czsgq4a251jqlk5qs3sldlcryfcganswzk2lbgplmn7q";
};
# The pypi package does not include tests

View File

@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "Flask-Babel";
version = "0.11.2";
version = "0.12.2";
src = fetchPypi {
inherit pname version;
sha256 = "0ff9n165vhf1nhv6807ckhpp224jw7k7sd7jz5kfh3sbpl85gmy0";
sha256 = "11jwp8vvq1gnm31qh6ihy2h393hy18yn9yjp569g60r0wj1x2sii";
};
propagatedBuildInputs = [

View File

@@ -3,13 +3,13 @@
, mock, nose}:
buildPythonPackage rec {
pname = "Flask-OAuthlib";
version = "0.9.3";
version = "0.9.5";
src = fetchFromGitHub {
owner = "lepture";
repo = "flask-oauthlib";
rev = "v${version}";
sha256 = "1vnr2kmbwl6mv2fsv92jjxzfibq2m3pnbcs6ba9k32jr1ci7wfh7";
sha256 = "1l82niwrpm7411xvwh65bj263si90kcbrbfg5fa52mpixhxcp40f";
};
buildInputs = [ mock nose ];

View File

@@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "ftfy";
version = "4.4.3";
version = "5.3.0";
# ftfy v5 only supports python3. Since at the moment the only
# packages that use ftfy are spacy and textacy which both support
# python 2 and 3, they have pinned ftfy to the v4 branch.
@@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "152xdb56rhs1q4r0ck1n557sbphw7zq18r75a7kkd159ckdnc01w";
sha256 = "0zybd0ypxhb83bgdbwzi120n02328v4j0ndm6bgkb6wg2gah59qb";
};
propagatedBuildInputs = [ html5lib wcwidth ];

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "fusepy";
version = "2.0.4";
version = "3.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h";
sha256 = "1gg69qfi9pjcic3g98l8ya64rw2vc1bp8gsf76my6gglq8z7izvj";
};
propagatedBuildInputs = [ pkgs.fuse ];

View File

@@ -6,13 +6,13 @@
}:
buildPythonPackage rec {
version = "6.3.3";
version = "6.3.8";
pname = "gnureadline";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "1ghck2zz4xbqa3wz73brgjhrqj55p9hc1fq6c9zb09dnyhwb0nd2";
sha256 = "0ddhj98x2nv45iz4aadk4b9m0b1kpsn1xhcbypn5cd556knhiqjq";
};
buildInputs = [ pkgs.ncurses ];

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "google-api-core";
version = "1.3.0";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "ac85fc7f6687bb0271f2f70ca298da90f35789f9de1fe3a11e8caeb571332b77";
sha256 = "16ximavy7zgg0427790fmyma03xnkywar9krp4lx6bcphvyiahh3";
};
propagatedBuildInputs = [

View File

@@ -5,12 +5,12 @@
}:
buildPythonPackage rec {
version = "1.5.2";
version = "1.5.4";
pname = "gsd";
src = fetchPypi {
inherit pname version;
sha256 = "0ce73a9bc7b79968a2b96cc2b0934e2cbe11700adbd02b4b492fea1e3d4d51f4";
sha256 = "1p1akwirxq809apxia6b9ndalpdfgv340ssnli78h74bkqnw1376";
};
propagatedBuildInputs = [ numpy ];

View File

@@ -5,13 +5,13 @@
buildPythonPackage rec {
pname = "i3ipc";
version = "1.4.0";
version = "1.5.1";
src = fetchFromGitHub {
owner = "acrisci";
repo = "i3ipc-python";
rev = "v${version}";
sha256 = "15drq16ncmjrgsri6gjzp0qm8abycm92nicm78q3k7vy7rqpvfnh";
sha256 = "06d7g4d7cnh0vp5diavy3x9wz1w5nwdrb7ipc4g1c3a2wc78862d";
};
propagatedBuildInputs = [ enum-compat ];

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "IBMQuantumExperience";
version = "2.0.3";
version = "2.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "c5dbcc140344c7bdf545ad59db87f31a90ca35107c40d6cae1489bb997a47ba9";
sha256 = "0szn743sbm3cs80982cf4994c1xcg6iz5xkhdbpm1kfv5qn1phja";
};
propagatedBuildInputs = [

View File

@@ -0,0 +1,36 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, ipaddress
, python
, pythonOlder
}:
buildPythonPackage rec {
version = "0.1.4";
pname = "ifaddr";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "cf2a8fbb578da2844d999a0a453825f660ed2d3fc47dcffc5f673dd8de4f0f8b";
};
# ipaddress is provided in python stdlib > 3.3
postPatch = if pythonOlder "3.4" then "" else ''
sed -i "s/'ipaddress'//" setup.py
'';
propagatedBuildInputs = [ ipaddress ];
checkPhase = ''
${python.interpreter} ifaddr/test_ifaddr.py
'';
meta = with stdenv.lib; {
homepage = https://github.com/pydron/ifaddr;
description = "Enumerates all IP addresses on all network adapters of the system";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "influxdb";
version = "4.0.0";
version = "5.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "0injsml6zmb3hkgc03117fdlg573kbfgjbijpd5npf0vsy0xnpvz";
sha256 = "0fqnshmsgifvp79pd4g9a1kyfxvpa9vczv0dv8x2jr2c5m1mi99v";
};
# ImportError: No module named tests

View File

@@ -6,12 +6,12 @@
buildPythonPackage rec {
pname = "ipaddr";
version = "2.1.11";
version = "2.2.0";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v";
sha256 = "1ml8r8z3f0mnn381qs1snbffa920i9ycp6mm2am1d3aqczkdz4j0";
};
meta = with stdenv.lib; {

View File

@@ -1,19 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, psutil
, python
}:
buildPythonPackage rec {
pname = "memory_profiler";
version = "0.41";
version = "0.54.0";
src = fetchPypi {
inherit pname version;
sha256 = "dce6e931c281662a500b142595517d095267216472c2926e5ec8edab89898d10";
sha256 = "d64342a23f32e105f4929b408a8b89d9222c3ce8afbbb3359817555811448d1a";
};
propagatedBuildInputs = [ psutil ];
checkPhase = ''
make test PYTHON=${python.interpreter}
'';
# Tests don't import profile
doCheck = false;
# doCheck = false;
meta = with stdenv.lib; {
description = "A module for monitoring memory usage of a python program";

View File

@@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "mypy";
version = "0.630";
version = "0.641";
# Tests not included in pip package.
doCheck = false;
src = fetchPypi {
inherit pname version;
sha256 = "1p8rnap4ngczfm2q4035mcmn5nsprbljnhksx2jxzxrb9immh137";
sha256 = "0ma4l7px96zzb8x89dk9mkrrdzdhdqckvfsbld4fj9n25k1iw1wf";
};
disabled = !isPy3k;

View File

@@ -1,17 +1,21 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, glibcLocales
}:
buildPythonPackage rec {
pname = "nameparser";
version = "0.3.4";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "1zi94m99ziwwd6kkip3w2xpnl05r2cfv9iq68inz7np81c3g8vag";
sha256 = "c7eeeffbf16e263452b17b5f4b544d366c3364e966721f39d490e6c7c8b44b7f";
};
LC_ALL="en_US.UTF-8";
buildInputs = [ glibcLocales ];
meta = with stdenv.lib; {
description = "A simple Python module for parsing human names into their individual components";
homepage = https://github.com/derek73/python-nameparser;

View File

@@ -2,18 +2,23 @@
, buildPythonPackage
, fetchPypi
, six
, pythonOlder
, mock
, coverage
}:
buildPythonPackage rec {
pname = "nose2";
version = "0.5.0";
version = "0.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "0595rh6b6dncbj0jigsyrgrh6h8fsl6w1fr69h76mxv9nllv0rlr";
sha256 = "9052f2b46807b63d9bdf68e0768da1f8386368889b50043fd5d0889c470258f3";
};
propagatedBuildInputs = [ six ];
propagatedBuildInputs = [ six coverage ]
++ stdenv.lib.optionals (pythonOlder "3.4") [ mock ];
# AttributeError: 'module' object has no attribute 'collector'
doCheck = false;

View File

@@ -2,26 +2,32 @@
, buildPythonPackage
, fetchFromGitHub
, appdirs
, pyyaml
, ruamel_yaml
, requests
, dbus-python
, emoji
, sleekxmpp
, mock
, psutil
, python
# , dbus-python
}:
buildPythonPackage rec {
version = "1.2.0";
version = "2.6.0";
pname = "ntfy";
src = fetchFromGitHub {
owner = "dschep";
repo = "ntfy";
rev = "v${version}";
sha256 = "0yjxwisxpxy3vpnqk9nw5k3db3xx6wyf6sk1px9m94s30glcq2cc";
sha256 = "0hnwrybbk0gw0c6kw2zpx0x1rh3jb9qyrprcphzkv0jlhzdfkrp1";
};
propagatedBuildInputs = [ appdirs pyyaml requests dbus-python emoji sleekxmpp mock ];
propagatedBuildInputs = [ requests ruamel_yaml appdirs mock sleekxmpp emoji psutil ];
checkPhase = ''
HOME=$(mktemp -d) ${python.interpreter} setup.py test
'';
meta = with stdenv.lib; {
description = "A utility for sending notifications, on demand and when commands finish";

View File

@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, JPype1, numpy, pandas, pytest, pytestrunner, pkgconfig, setuptools_scm, six }:
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, numpy, pandas, pytest, pkgconfig, setuptools_scm, six }:
let
_arrow-cpp = arrow-cpp.override { inherit python; };
@@ -13,12 +13,13 @@ buildPythonPackage rec {
nativeBuildInputs = [ cmake cython pkgconfig setuptools_scm ];
propagatedBuildInputs = [ numpy six ] ++ lib.optionals (!isPy3k) [ futures ];
checkInputs = [ pandas pytest pytestrunner JPype1 ];
checkInputs = [ pandas pytest ];
PYARROW_BUILD_TYPE = "release";
PYARROW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib";
preCheck = ''
rm pyarrow/tests/test_jvm.py
rm pyarrow/tests/test_hdfs.py
rm pyarrow/tests/test_cuda.py
@@ -43,6 +44,14 @@ buildPythonPackage rec {
setupPyBuildFlags = ["--with-parquet" ];
checkPhase = ''
mv pyarrow/tests tests
rm -rf pyarrow
mkdir pyarrow
mv tests pyarrow/tests
pytest -v
'';
meta = with lib; {
description = "A cross-language development platform for in-memory data";
homepage = https://arrow.apache.org/;

View File

@@ -1,17 +1,17 @@
{ stdenv, buildPythonPackage, fetchPypi
, nose, pyparsing, decorator, six }:
, nose, pyparsing, decorator, six, future }:
buildPythonPackage rec {
pname = "PyContracts";
version = "1.8.3";
version = "1.8.6";
src = fetchPypi {
inherit pname version;
sha256 = "8e52c4ddbc015b56cc672b7c005c11f3df4fe407b832964099836fa3cccb8b9d";
sha256 = "8b6ad8750bbb712b1c7b8f89772b42baeefd35b3c7085233e8027b92f277e073";
};
buildInputs = [ nose ];
propagatedBuildInputs = [ pyparsing decorator six ];
propagatedBuildInputs = [ pyparsing decorator six future ];
meta = with stdenv.lib; {
description = "Allows to declare constraints on function parameters and return values";

View File

@@ -5,19 +5,15 @@
buildPythonPackage rec {
pname = "Pympler";
version = "0.4.3";
version = "0.6";
src = fetchPypi {
inherit pname version;
sha256 = "0mhyxqlkha98y8mi5zqcjg23r30mgdjdzs05lghbmqfdyvzjh1a3";
sha256 = "c262ceca4dac67b8b523956833c52443420eabc3321a07185990b358b8ba13a7";
};
# Remove test asizeof.flatsize(), broken and can be missed as
# test is only useful on python 2.5, see https://github.com/pympler/pympler/issues/22
patchPhase = ''
substituteInPlace ./test/asizeof/test_asizeof.py --replace "n, e = test_flatsize" "#n, e = test_flatsize"
substituteInPlace ./test/asizeof/test_asizeof.py --replace "self.assert_(n," "#self.assert_(n,"
substituteInPlace ./test/asizeof/test_asizeof.py --replace "self.assert_(not e" "#self.assert_(not e"
postPatch = ''
rm test/asizeof/test_asizeof.py
'';
doCheck = stdenv.hostPlatform.isLinux;

View File

@@ -1,27 +1,26 @@
{ stdenv, buildPythonPackage, fetchPypi
, pytest, django, setuptools_scm
, fetchpatch
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, django
, setuptools_scm
, django-configurations
, pytest_xdist
, six
}:
buildPythonPackage rec {
pname = "pytest-django";
version = "3.1.2";
version = "3.4.3";
src = fetchPypi {
inherit pname version;
sha256 = "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303";
sha256 = "b379282feaf89069cb790775ab6bbbd2bd2038a68c7ef9b84a41898e0b551081";
};
buildInputs = [ pytest setuptools_scm ];
checkInputs = [ django-configurations pytest_xdist six ];
propagatedBuildInputs = [ django ];
patches = [
# Unpin setuptools-scm
(fetchpatch {
url = "https://github.com/pytest-dev/pytest-django/commit/25cbc3b395dcdeb92bdc9414e296680c2b9d602e.patch";
sha256 = "0mz3rcsv44pfzlxy3pv8mx87glmv34gy0d5aknvbzgb2a9niryws";
})
];
# Complicated. Requires Django setup.
doCheck = false;

View File

@@ -0,0 +1,37 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytest
, pytz
, glibcLocales
}:
buildPythonPackage rec {
version = "0.6.3";
pname = "python-rapidjson";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "0a7729c711d9be2b6c0638ce4851d398e181f2329814668aa7fda6421a5da085";
};
LC_ALL="en_US.utf-8";
buildInputs = [ glibcLocales ];
# buildInputs = [ ];
checkInputs = [ pytest pytz ];
# propagatedBuildInputs = [ ];
checkPhase = ''
pytest tests
'';
meta = with stdenv.lib; {
homepage = https://github.com/python-rapidjson/python-rapidjson;
description = "Python wrapper around rapidjson ";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -1,12 +1,20 @@
{ stdenv, fetchPypi, buildPythonPackage, certifi, future, urllib3 }:
{ stdenv
, fetchPypi
, buildPythonPackage
, certifi
, future
, urllib3
, tornado
, pytest
}:
buildPythonPackage rec {
pname = "python-telegram-bot";
version = "10.1.0";
version = "11.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "ca2f8a44ddef7271477e16f4986647fa90ef4df5b55a7953e53b9c9d2672f639";
sha256 = "cca4e32ebb8da7fdf35ab2fa2b3edd441211364819c5592fc253acdb7561ea5b";
};
prePatch = ''
@@ -16,10 +24,14 @@ buildPythonPackage rec {
--replace "import telegram.vendor.ptb_urllib3.urllib3.contrib.appengine as appengine" "import urllib3.contrib.appengine as appengine" \
--replace "from telegram.vendor.ptb_urllib3.urllib3.connection import HTTPConnection" "from urllib3.connection import HTTPConnection" \
--replace "from telegram.vendor.ptb_urllib3.urllib3.util.timeout import Timeout" "from urllib3.util.timeout import Timeout"
touch LICENSE.dual
'';
propagatedBuildInputs = [ certifi future urllib3 ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ certifi future urllib3 tornado ];
# tests not included with release
doCheck = false;
meta = with stdenv.lib; {

View File

@@ -1,15 +1,21 @@
{ stdenv, buildPythonPackage, fetchurl }:
{ stdenv
, buildPythonPackage
, fetchurl
, glibcLocales
}:
buildPythonPackage rec {
pname = "rpmfluff";
version = "0.5.3";
name = "${pname}-${version}";
version = "0.5.5";
src = fetchurl {
url = "https://releases.pagure.org/${pname}/${name}.tar.xz";
sha256 = "1i45f012ngpxs83m3dpmaj3hs8z7r9sbf05vnvzgs3hpgsbhxa7r";
url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.xz";
sha256 = "0m92ihii8fgdyma9vn3s6fhq0px8n930c27zs554la0mm4548ss3";
};
LC_ALL="en_US.utf-8";
buildInputs = [ glibcLocales ];
meta = with stdenv.lib; {
description = "lightweight way of building RPMs, and sabotaging them";
homepage = https://pagure.io/rpmfluff;

View File

@@ -4,6 +4,7 @@
, fetchFromGitHub
, buildPythonPackage
, geckodriver
, urllib3
, xorg
}:
@@ -22,17 +23,17 @@ in
buildPythonPackage rec {
pname = "selenium";
version = "3.8.1";
version = "3.14.1";
src = fetchPypi {
inherit pname version;
sha256 = "1lqm2md84g11g7lqi94xqb5lydm93vgmlznfhf27g6sy9ayjvgcs";
sha256 = "ab192cd046164c40fabcf44b47c66c8b12495142f4a69dcc55ea6eeef096e614";
};
buildInputs = [xorg.libX11];
propagatedBuildInputs = [
geckodriver
geckodriver urllib3
];
patchPhase = stdenv.lib.optionalString stdenv.isLinux ''

View File

@@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
, click
}:
buildPythonPackage rec {
pname = "spark_parser";
version = "1.8.7";
src = fetchPypi {
inherit pname version;
sha256 = "4c5e6064afbb3c114749016d585b0e4f9222d4ffa97a1854c9ab70b25783ef48";
};
buildInputs = [ nose ];
propagatedBuildInputs = [ click ];
meta = with stdenv.lib; {
description = ''An Early-Algorithm Context-free grammar Parser'';
homepage = "https://github.com/rocky/python-spark";
license = licenses.mit;
maintainers = with maintainers; [raskin];
};
}

View File

@@ -3,34 +3,30 @@
, fetchPypi
, fetchpatch
, pytest
, python-rapidjson
, pretend
, freezegun
, twisted
, simplejson
, six
, pythonAtLeast
}:
buildPythonPackage rec {
pname = "structlog";
version = "17.2.0";
version = "18.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "6980001045abd235fa12582222627c19b89109e58b85eb77d5a5abc778df6e20";
sha256 = "e361edb3b9aeaa85cd38a1bc9ddbb60cda8a991fc29de9db26832f6300e81eb4";
};
patches = [
# Fix tests for pytest 3.3
(fetchpatch {
url = "https://github.com/hynek/structlog/commit/22f0ae50607a0cb024361599f84610ce290deb99.patch";
sha256 = "03622i13ammkpyrdk48kimbz94gbkpcmdpy0kj2z09m1kp6q2ljv";
})
];
checkInputs = [ pytest pretend freezegun simplejson ];
checkInputs = [ pytest pretend freezegun simplejson twisted ]
++ lib.optionals (pythonAtLeast "3.6") [ python-rapidjson ];
propagatedBuildInputs = [ six ];
checkPhase = ''
rm tests/test_twisted.py*
# rm tests/test_twisted.py*
py.test
'';

View File

@@ -9,22 +9,24 @@
, pyopenssl
, trustme
, sniffio
, jedi
, pylint
}:
buildPythonPackage rec {
pname = "trio";
version = "0.7.0";
version = "0.9.0";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0df152qnj4xgxrxzd8619f8h77mzry7z8sp4m76fi21gnrcr297n";
sha256 = "6d905d950dfa1db3fad6b5ef5637c221947123fd2b0e112033fecfc582318c3b";
};
checkInputs = [ pytest pyopenssl trustme ];
checkInputs = [ pytest pyopenssl trustme jedi pylint ];
# It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
checkPhase = ''
py.test -k 'not test_getnameinfo and not test_SocketType_resolve and not test_getprotobyname'
HOME="$(mktemp -d)" py.test -k 'not test_getnameinfo and not test_SocketType_resolve and not test_getprotobyname and not test_waitpid'
'';
propagatedBuildInputs = [
attrs

View File

@@ -6,18 +6,19 @@
, requests_toolbelt
, tqdm
, pyblake2
, readme_renderer
}:
buildPythonPackage rec {
pname = "twine";
version = "1.11.0";
version = "1.12.1";
src = fetchPypi {
inherit pname version;
sha256 = "09cz9v63f8mrs4znbjapjj2z3wdfryq8q364zm0wzjhbzzcs9n9g";
sha256 = "7d89bc6acafb31d124e6e5b295ef26ac77030bf098960c2a4c4e058335827c5c";
};
propagatedBuildInputs = [ pkginfo requests requests_toolbelt tqdm pyblake2 ];
propagatedBuildInputs = [ pkginfo requests requests_toolbelt tqdm pyblake2 readme_renderer ];
# Requires network
doCheck = false;

View File

@@ -3,19 +3,30 @@
, fetchPypi
, spark_parser
, xdis
, nose
, pytest
, hypothesis
, six
}:
buildPythonPackage rec {
pname = "uncompyle6";
version = "2.8.3";
version = "3.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "0hx5sji6qjvnq1p0zhvyk5hgracpv2w6iar1j59qwllxv115ffi1";
sha256 = "bd882f3c979b49d28ba7accc5ce7380ced8cab12e782e9170769ca15f0b81f8a";
};
checkInputs = [ nose pytest hypothesis six ];
propagatedBuildInputs = [ spark_parser xdis ];
# six import errors (yet it is supplied...)
checkPhase = ''
pytest ./pytest --ignore=pytest/test_build_const_key_map.py \
--ignore=pytest/test_grammar.py
'';
meta = with stdenv.lib; {
description = "Python cross-version byte-code deparser";
homepage = https://github.com/rocky/python-uncompyle6/;

View File

@@ -0,0 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, numpy
, awkward
}:
buildPythonPackage rec {
version = "0.2.5";
pname = "uproot-methods";
src = fetchPypi {
inherit pname version;
sha256 = "7d5563b3335af414a12caf5b350c952fdc7576abb17630382de5564a7c254ae6";
};
propagatedBuildInputs = [ numpy awkward ];
meta = with stdenv.lib; {
homepage = https://github.com/scikit-hep/uproot-methods;
description = "Pythonic mix-ins for ROOT classes";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -1,17 +1,30 @@
{lib, fetchPypi, buildPythonPackage, numpy}:
{ lib
, fetchPypi
, buildPythonPackage
, numpy
, python-lz4
, uproot-methods
, awkward
, cachetools
, pythonOlder
, pytestrunner
, pytest
, backports_lzma
}:
buildPythonPackage rec {
pname = "uproot";
version = "2.9.11";
version = "3.2.6";
src = fetchPypi {
inherit pname version;
sha256 = "da71e9e239129ec2ae7a62f9d35aebd46456f05e000ef14f32fe2c9fa8ec92c2";
sha256 = "af0a093f0788b8983d07b88fac3094b26c3e28358bc10cdb8d757cc07956f8d4";
};
propagatedBuildInputs = [
numpy
];
buildInputs = [ pytestrunner ];
checkInputs = [ pytest ]
++ lib.optionals (pythonOlder "3.3") [ backports_lzma ];
propagatedBuildInputs = [ numpy python-lz4 cachetools uproot-methods awkward ];
meta = with lib; {
homepage = https://github.com/scikit-hep/uproot;

View File

@@ -1,14 +1,17 @@
{ lib, buildPythonPackage, fetchPypi, pytest }:
{ lib, buildPythonPackage, fetchPypi, pytest, glibcLocales }:
buildPythonPackage rec {
pname = "whichcraft";
version = "0.4.1";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "9e0d51c9387cb7e9f28b7edb549e6a03da758f7784f991eb4397d7f7808c57fd";
sha256 = "fecddd531f237ffc5db8b215409afb18fa30300699064cca4817521b4fc81815";
};
LC_ALL="en_US.utf-8";
buildInputs = [ glibcLocales ];
checkInputs = [ pytest ];
checkPhase = ''

View File

@@ -1,20 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
, pytest
, six
, click
}:
buildPythonPackage rec {
pname = "xdis";
version = "3.2.4";
version = "3.8.8";
src = fetchPypi {
inherit pname version;
sha256 = "0g2lh70837vigcbc1i58349wp2xzrhlsg2ahc92sn8d3jwxja4dk";
sha256 = "4d212df8a85ab55a35f6ad71b2c29818d903c3e6a95e31eb26d5f3fc66a4e015";
};
propagatedBuildInputs = [ nose six ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ six click ];
# newest release moves to pytest (tests not packaged with release)
doCheck = false;
meta = with stdenv.lib; {
description = "Python cross-version byte-code disassembler and marshal routines";

View File

@@ -1,16 +1,32 @@
{ stdenv, buildPythonPackage, fetchPypi
, netifaces, six, enum-compat }:
{ stdenv
, buildPythonPackage
, fetchPypi
, ifaddr
, typing
, isPy27
, pythonOlder
, python
}:
buildPythonPackage rec {
pname = "zeroconf";
version = "0.20.0";
version = "0.21.3";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "6e3f1e7b5871e3d1410ac29b9fb85aafc1e2d661ed596b07a6f84559a475efcb";
sha256 = "5b52dfdf4e665d98a17bf9aa50dea7a8c98e25f972d9c1d7660e2b978a1f5713";
};
propagatedBuildInputs = [ netifaces six enum-compat ];
propagatedBuildInputs = [ ifaddr ]
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
# tests not included with pypi release
doCheck = false;
checkPhase = ''
${python.interpreter} test_zeroconf.py
'';
meta = with stdenv.lib; {
description = "A pure python implementation of multicast DNS service discovery";