Merge pull request #25243 from lsix/update_channels

Update pythonPackages.channels and dependencies

authored by Frederik Rietdijk and committed by GitHub 53da8338 033f2a6c

+276 -129
+20
pkgs/development/python-modules/asgi_ipc/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl, 2 + asgiref, msgpack, posix_ipc 3 + }: 4 + buildPythonPackage rec { 5 + name = "asgi_ipc-${version}"; 6 + version = "1.3.1"; 7 + 8 + src = fetchurl { 9 + url = "mirror://pypi/a/asgi_ipc/${name}.tar.gz"; 10 + sha256 = "1dm8xvm1z28f421ck1ympxsq2sjm9xb7dla6p8yd2bz6gn6p5h7v"; 11 + }; 12 + 13 + propagatedBuildInputs = [ asgiref msgpack posix_ipc ]; 14 + 15 + meta = with stdenv.lib; { 16 + description = "Posix IPC-backed ASGI channel layer implementation"; 17 + license = licenses.bsd3; 18 + homepage = http://github.com/django/asgi_ipc/; 19 + }; 20 + }
+23
pkgs/development/python-modules/asgi_redis/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl, 2 + asgiref, asgi_ipc, msgpack, six, redis, cryptography 3 + }: 4 + buildPythonPackage rec { 5 + name = "asgi_redis-${version}"; 6 + version = "1.3.0"; 7 + 8 + src = fetchurl { 9 + url = "mirror://pypi/a/asgi_redis/${name}.tar.gz"; 10 + sha256 = "0zhv51w0fx3i8m0032nk9v00l6mxaswyi95yzy7p7fjww4q74ncl"; 11 + }; 12 + 13 + # Requires a redis server available 14 + doCheck = false; 15 + 16 + propagatedBuildInputs = [ asgiref asgi_ipc msgpack six redis cryptography ]; 17 + 18 + meta = with stdenv.lib; { 19 + description = "Redis-backed ASGI channel layer implementation"; 20 + license = licenses.bsd3; 21 + homepage = http://github.com/django/asgi_redis/; 22 + }; 23 + }
+18
pkgs/development/python-modules/asgiref/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl, six }: 2 + buildPythonPackage rec { 3 + name = "asgiref-${version}"; 4 + version = "1.1.1"; 5 + 6 + src = fetchurl { 7 + url = "mirror://pypi/a/asgiref/${name}.tar.gz"; 8 + sha256 = "0gayxnysknwg8hxb5kvmi2mmd5dnrhgza23daf8j25w3nj2drars"; 9 + }; 10 + 11 + propagatedBuildInputs = [ six ]; 12 + 13 + meta = with stdenv.lib; { 14 + description = "Reference ASGI adapters and channel layers"; 15 + license = licenses.bsd3; 16 + homepage = https://github.com/django/asgiref; 17 + }; 18 + }
+30
pkgs/development/python-modules/autobahn/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl, isPy3k, 2 + unittest2, mock, pytest, trollius, pytest-asyncio, 3 + six, twisted, txaio 4 + }: 5 + buildPythonPackage rec { 6 + name = "${pname}-${version}"; 7 + pname = "autobahn"; 8 + version = "0.18.2"; 9 + 10 + src = fetchurl { 11 + url = "mirror://pypi/a/${pname}/${name}.tar.gz"; 12 + sha256 = "1alp71plqnrak5nm2vn9mmkxayjb081c1kihqwf60wdpvv0w7y14"; 13 + }; 14 + 15 + buildInputs = [ unittest2 mock pytest trollius pytest-asyncio ]; 16 + propagatedBuildInputs = [ six twisted txaio ]; 17 + 18 + disabled = !isPy3k; 19 + checkPhase = '' 20 + py.test $out 21 + ''; 22 + 23 + meta = with stdenv.lib; { 24 + description = "WebSocket and WAMP in Python for Twisted and asyncio."; 25 + homepage = "http://crossbar.io/autobahn"; 26 + license = licenses.mit; 27 + maintainers = with maintainers; [ nand0p ]; 28 + platforms = platforms.all; 29 + }; 30 + }
+25
pkgs/development/python-modules/automat/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl, 2 + m2r, setuptools_scm, six, attrs }: 3 + buildPythonPackage rec { 4 + name = "Automat-${version}"; 5 + version = "0.5.0"; 6 + 7 + src = fetchurl { 8 + url = "mirror://pypi/A/Automat/${name}.tar.gz"; 9 + sha256 = "1hnpknkqnc2m900kkzrzx9l6g5dy5dassrdj9pn34x1pcdkyr2a8"; 10 + }; 11 + 12 + buildInputs = [ m2r setuptools_scm ]; 13 + propagatedBuildInputs = [ six attrs ]; 14 + 15 + # Some tests require twisetd, but twisted requires Automat to build. 16 + # this creates a circular dependency. 17 + doCheck = false; 18 + 19 + meta = with stdenv.lib; { 20 + homepage = https://github.com/glyph/Automat; 21 + description = "Self-service finite-state machines for the programmer on the go"; 22 + license = licenses.mit; 23 + maintainers = [ ]; 24 + }; 25 + }
+2 -2
pkgs/development/python-modules/channels/default.nix
··· 3 3 }: 4 4 buildPythonPackage rec { 5 5 name = "channels-${version}"; 6 - version = "1.0.3"; 6 + version = "1.1.3"; 7 7 8 8 src = fetchurl { 9 9 url = "mirror://pypi/c/channels/${name}.tar.gz"; 10 - sha256 = "1bwlqnfc27p1qnjmdl8jnr941gpl8ggnxxfy8anh9qgmg20q9pfd"; 10 + sha256 = "182war437i6wsxwf2v4szn8ig0nkpinpn4n27fxhh5q8w832hj93"; 11 11 }; 12 12 13 13 # Files are missing in the distribution
+18
pkgs/development/python-modules/constantly/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl 2 + }: 3 + buildPythonPackage rec { 4 + name = "constantly-${version}"; 5 + version = "15.1.0"; 6 + 7 + src = fetchurl { 8 + url = "mirror://pypi/c/constantly/${name}.tar.gz"; 9 + sha256 = "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"; 10 + }; 11 + 12 + meta = with stdenv.lib; { 13 + homepage = https://github.com/twisted/constantly; 14 + description = "symbolic constant support"; 15 + license = licenses.mit; 16 + maintainers = [ ]; 17 + }; 18 + }
+4 -3
pkgs/development/python-modules/daphne/default.nix
··· 1 1 { stdenv, buildPythonPackage, fetchurl, 2 - asgiref, autobahn, twisted 2 + asgiref, autobahn, twisted, hypothesis 3 3 }: 4 4 buildPythonPackage rec { 5 5 name = "daphne-${version}"; 6 - version = "1.0.3"; 6 + version = "1.2.0"; 7 7 8 8 src = fetchurl { 9 9 url = "mirror://pypi/d/daphne/${name}.tar.gz"; 10 - sha256 = "1bpavq3sxr66mqwnnfg67pcchyaq7siqyin2r89aqadf6nab58d2"; 10 + sha256 = "084216isw7rwy693i62rbd8kvpqx418jvf1q72cplv833wz3in7l"; 11 11 }; 12 12 13 + buildInputs = [ hypothesis ]; 13 14 propagatedBuildInputs = [ asgiref autobahn twisted ]; 14 15 15 16 meta = with stdenv.lib; {
+24
pkgs/development/python-modules/m2r/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl, 2 + mistune, docutils } : 3 + buildPythonPackage rec { 4 + name = "m2r-${version}"; 5 + version = "0.1.5"; 6 + 7 + src = fetchurl { 8 + url = "mirror://pypi/m/m2r/${name}.tar.gz"; 9 + sha256 = "08rjn3x1qag60wawjnq95wmgijrn33apr4fhj01s2p6hmrqgfj1l"; 10 + }; 11 + 12 + propagatedBuildInputs = [ mistune docutils ]; 13 + 14 + # Some tests interfeere with each other (test.md and test.rst are 15 + # deleted by some tests and not properly regenerated) 16 + doCheck = false; 17 + 18 + meta = with stdenv.lib; { 19 + homepage = https://github.com/miyakogi/m2r; 20 + description = "converts a markdown file including reST markups to a valid reST format"; 21 + license = licenses.mit; 22 + maintainers = [ ]; 23 + }; 24 + }
+19
pkgs/development/python-modules/pytest-asyncio/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl, pytest }: 2 + buildPythonPackage rec { 3 + name = "${pname}-${version}"; 4 + pname = "pytest-asyncio"; 5 + version = "0.5.0"; 6 + 7 + src = fetchurl { 8 + url = "mirror://pypi/p/${pname}/${name}.tar.gz"; 9 + sha256 = "03sxq8fglr4lw4y6wqlbli9ypr65fxzx6hlpn5wpccx8v5472iff"; 10 + }; 11 + 12 + buildInputs = [ pytest ]; 13 + 14 + meta = with stdenv.lib; { 15 + description = "library for testing asyncio code with pytest"; 16 + license = licenses.asl20; 17 + homepage = https://github.com/pytest-dev/pytest-asyncio; 18 + }; 19 + }
+45
pkgs/development/python-modules/twisted/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl, python, 2 + zope_interface, incremental, automat, constantly 3 + }: 4 + buildPythonPackage rec { 5 + 6 + name = "Twisted-${version}"; 7 + version = "17.1.0"; 8 + 9 + src = fetchurl { 10 + url = "mirror://pypi/T/Twisted/${name}.tar.bz2"; 11 + sha256 = "1p245mg15hkxp7hy5cyq2fgvlgjkb4cg0gwkwd148nzy1bbi3wnv"; 12 + }; 13 + 14 + propagatedBuildInputs = [ zope_interface incremental automat constantly ]; 15 + 16 + # Patch t.p._inotify to point to libc. Without this, 17 + # twisted.python.runtime.platform.supportsINotify() == False 18 + patchPhase = stdenv.lib.optionalString stdenv.isLinux '' 19 + substituteInPlace src/twisted/python/_inotify.py --replace \ 20 + "ctypes.util.find_library('c')" "'${stdenv.glibc.out}/lib/libc.so.6'" 21 + ''; 22 + 23 + # Generate Twisted's plug-in cache. Twisted users must do it as well. See 24 + # http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3 25 + # and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477103 for 26 + # details. 27 + postInstall = "$out/bin/twistd --help > /dev/null"; 28 + 29 + checkPhase = '' 30 + ${python.interpreter} -m unittest discover -s twisted/test 31 + ''; 32 + # Tests require network 33 + doCheck = false; 34 + 35 + meta = with stdenv.lib; { 36 + homepage = http://twistedmatrix.com/; 37 + description = "Twisted, an event-driven networking engine written in Python"; 38 + longDescription = '' 39 + Twisted is an event-driven networking engine written in Python 40 + and licensed under the MIT license. 41 + ''; 42 + license = licenses.mit; 43 + maintainers = [ ]; 44 + }; 45 + }
+28
pkgs/development/python-modules/txaio/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchurl, 2 + pytest, mock, six, twisted 3 + }: 4 + buildPythonPackage rec { 5 + name = "${pname}-${version}"; 6 + pname = "txaio"; 7 + version = "2.7.0"; 8 + 9 + buildInputs = [ pytest mock ]; 10 + propagatedBuildInputs = [ six twisted ]; 11 + 12 + checkPhase = '' 13 + py.test -k "not test_sdist" 14 + ''; 15 + 16 + src = fetchurl { 17 + url = "mirror://pypi/t/${pname}/${name}.tar.gz"; 18 + sha256 = "0hwd6jx6hb44p40id9r0m42y07rav5jvddf0f1bcm269i3dnwr47"; 19 + }; 20 + 21 + meta = with stdenv.lib; { 22 + description = "Utilities to support code that runs unmodified on Twisted and asyncio."; 23 + homepage = "https://github.com/crossbario/txaio"; 24 + license = licenses.mit; 25 + maintainers = with maintainers; [ nand0p ]; 26 + platforms = platforms.all; 27 + }; 28 + }
+20 -124
pkgs/top-level/python-packages.nix
··· 192 192 193 193 asn1crypto = callPackage ../development/python-modules/asn1crypto { }; 194 194 195 + automat = callPackage ../development/python-modules/automat { }; 196 + 195 197 # packages defined elsewhere 196 198 197 199 bap = callPackage ../development/python-modules/bap { ··· 806 808 }; 807 809 }; 808 810 809 - asgi_ipc = buildPythonPackage rec { 810 - name = "asgi_ipc-${version}"; 811 - version = "1.2.0"; 812 - 813 - src = pkgs.fetchurl { 814 - url = "mirror://pypi/a/asgi_ipc/${name}.tar.gz"; 815 - sha256 = "03phyfj30s4sgaqfbmv38nfvx3kdmjwsh3558d2lxrf2gdrimmf9"; 816 - }; 817 - 818 - propagatedBuildInputs = with self ; [ asgiref msgpack posix_ipc ]; 819 - 820 - meta = { 821 - description = "Posix IPC-backed ASGI channel layer implementation"; 822 - license = licenses.bsd3; 823 - homepage = http://github.com/django/asgi_ipc/; 824 - }; 825 - }; 811 + asgiref = callPackage ../development/python-modules/asgiref { }; 826 812 827 - asgi_redis = buildPythonPackage rec { 828 - name = "asgi_redis-${version}"; 829 - version = "1.0.0"; 813 + asgi_ipc = callPackage ../development/python-modules/asgi_ipc { }; 830 814 831 - src = pkgs.fetchurl { 832 - url = "mirror://pypi/a/asgi_redis/${name}.tar.gz"; 833 - sha256 = "1pdzxannmgb0as2x6xy0rk4xi8ygnsggpsa0z31pzpwbk6jsgwxd"; 834 - }; 835 - 836 - # Requires a redis server available 837 - doCheck = false; 838 - 839 - propagatedBuildInputs = with self ; [ asgiref asgi_ipc msgpack six redis cryptography ]; 840 - 841 - meta = { 842 - description = "Redis-backed ASGI channel layer implementation"; 843 - license = licenses.bsd3; 844 - homepage = http://github.com/django/asgi_redis/; 845 - }; 846 - }; 815 + asgi_redis = callPackage ../development/python-modules/asgi_redis { }; 847 816 848 817 python-editor = buildPythonPackage rec { 849 818 name = "python-editor-${version}"; ··· 2559 2528 license = licenses.bsd2; 2560 2529 }; 2561 2530 }; 2531 + 2532 + constantly = callPackage ../development/python-modules/constantly { }; 2562 2533 2563 2534 cornice = buildPythonPackage rec { 2564 2535 name = "cornice-${version}"; ··· 5199 5170 }; 5200 5171 5201 5172 pytest-httpbin = callPackage ../development/python-modules/pytest-httpbin { }; 5173 + 5174 + pytest-asyncio = callPackage ../development/python-modules/pytest-asyncio { }; 5202 5175 5203 5176 pytestcache = buildPythonPackage rec { 5204 5177 name = "pytest-cache-1.0"; ··· 8296 8269 }; 8297 8270 }; 8298 8271 8272 + m2r = callPackage ../development/python-modules/m2r { }; 8273 + 8299 8274 mailchimp = buildPythonPackage rec { 8300 8275 version = "2.0.9"; 8301 8276 name = "mailchimp-${version}"; ··· 13508 13483 sha256 = "1hl2psnn1chm698rimyn9dgcpl1mxgc8dj11b3ipp8z37yfjs3z9"; 13509 13484 }; 13510 13485 13486 + disabled = isPy3k; 13487 + 13511 13488 propagatedBuildInputs = with self; [ werkzeug twisted ]; 13512 13489 13513 13490 meta = { ··· 15617 15594 sha256 = "0wsh40ysj5gvfc777nrdvf5vbkr606r1gh7ibvw7x8b5g8afdy3y"; 15618 15595 name = "${name}.tar.gz"; 15619 15596 }; 15597 + 15598 + disabled = isPy3k; 15620 15599 15621 15600 propagatedBuildInputs = with self; [ twisted ]; 15622 15601 ··· 26060 26039 }; 26061 26040 }; 26062 26041 26063 - twisted = buildPythonPackage rec { 26064 - 26065 - name = "Twisted-${version}"; 26066 - version = "16.4.1"; 26067 - src = pkgs.fetchurl { 26068 - url = "mirror://pypi/T/Twisted/${name}.tar.bz2"; 26069 - sha256 = "1d8d73f006c990744effb35588359fd44d43608649ac0b6b7edc71176e88e816"; 26070 - }; 26071 - 26072 - propagatedBuildInputs = with self; [ zope_interface ]; 26073 - 26074 - # Patch t.p._inotify to point to libc. Without this, 26075 - # twisted.python.runtime.platform.supportsINotify() == False 26076 - patchPhase = optionalString stdenv.isLinux '' 26077 - substituteInPlace twisted/python/_inotify.py --replace \ 26078 - "ctypes.util.find_library('c')" "'${stdenv.glibc.out}/lib/libc.so.6'" 26079 - ''; 26080 - 26081 - # Generate Twisted's plug-in cache. Twisted users must do it as well. See 26082 - # http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3 26083 - # and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477103 for 26084 - # details. 26085 - postInstall = "$out/bin/twistd --help > /dev/null"; 26086 - 26087 - checkPhase = '' 26088 - ${python.interpreter} -m unittest discover -s twisted/test 26089 - ''; 26090 - # Tests require network 26091 - doCheck = false; 26092 - 26093 - meta = { 26094 - homepage = http://twistedmatrix.com/; 26095 - description = "Twisted, an event-driven networking engine written in Python"; 26096 - longDescription = '' 26097 - Twisted is an event-driven networking engine written in Python 26098 - and licensed under the MIT license. 26099 - ''; 26100 - license = licenses.mit; 26101 - maintainers = [ ]; 26102 - }; 26103 - }; 26042 + twisted = callPackage ../development/python-modules/twisted { }; 26104 26043 26105 26044 tzlocal = buildPythonPackage rec { 26106 26045 name = "tzlocal-1.2.2"; ··· 26906 26845 inherit url; 26907 26846 sha256 = "0rnshrzw8605x05mpd8ndrx3ri8h6cx713mp8sl4f04f4gcrz8ml"; 26908 26847 }; 26848 + 26849 + disabled = isPy3k; 26909 26850 26910 26851 propagatedBuildInputs = with self; [twisted dateutil]; 26911 26852 ··· 31465 31406 ''; 31466 31407 }; 31467 31408 31468 - txaio = buildPythonPackage rec { 31469 - name = "${pname}-${version}"; 31470 - pname = "txaio"; 31471 - version = "2.5.2"; 31472 - 31473 - meta = { 31474 - description = "Utilities to support code that runs unmodified on Twisted and asyncio."; 31475 - homepage = "https://github.com/crossbario/txaio"; 31476 - license = licenses.mit; 31477 - maintainers = with maintainers; [ nand0p ]; 31478 - platforms = platforms.all; 31479 - }; 31480 - 31481 - buildInputs = with self; [ pytest mock ]; 31482 - propagatedBuildInputs = with self; [ six twisted ]; 31483 - 31484 - checkPhase = '' 31485 - py.test -k "not test_sdist" 31486 - ''; 31487 - 31488 - src = pkgs.fetchurl { 31489 - url = "mirror://pypi/t/${pname}/${name}.tar.gz"; 31490 - sha256 = "321d441b336447b72dbe81a4d73470414454baf0543ec701fcfecbf4dcbda0fe"; 31491 - }; 31492 - }; 31409 + txaio = callPackage ../development/python-modules/txaio { }; 31493 31410 31494 31411 ramlfications = buildPythonPackage rec { 31495 31412 name = "${pname}-${version}"; ··· 31534 31451 }; 31535 31452 }; 31536 31453 31537 - autobahn = buildPythonPackage rec { 31538 - name = "${pname}-${version}"; 31539 - pname = "autobahn"; 31540 - version = "0.16.0"; 31541 - src = pkgs.fetchurl { 31542 - url = "mirror://pypi/a/${pname}/${name}.tar.gz"; 31543 - sha256 = "1158ml8h3g0vlsgw2jmy579glbg7dn0mjij8xibdl509b8qv9p51"; 31544 - }; 31545 - buildInputs = with self; [ unittest2 mock pytest_29 trollius ]; 31546 - propagatedBuildInputs = with self; [ six twisted txaio ]; 31547 - checkPhase = '' 31548 - py.test $out 31549 - ''; 31550 - 31551 - meta = { 31552 - description = "WebSocket and WAMP in Python for Twisted and asyncio."; 31553 - homepage = "http://crossbar.io/autobahn"; 31554 - license = licenses.mit; 31555 - maintainers = with maintainers; [ nand0p ]; 31556 - platforms = platforms.all; 31557 - }; 31558 - }; 31454 + autobahn = callPackage ../development/python-modules/autobahn { }; 31559 31455 31560 31456 jsonref = buildPythonPackage rec { 31561 31457 name = "${pname}-${version}";