git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #18759 from lsix/add_django_channels
dfadfddFrederik Rietdijk
pkgs/top-level/python-packages.nix+113−2
@@ -588,6 +588,63 @@ in modules // {
588 };
588 };
589 };
589 };
590
590
591+ asgiref = buildPythonPackage rec {
592+ name = "asgiref-${version}";
593+ version = "0.14.0";
594+
595+ src = pkgs.fetchurl {
596+ url = "mirror://pypi/a/asgiref/${name}.tar.gz";
597+ sha256 = "1ww4z14pd7g2mwz5nyvxm4rif0rsm9h8i0lwk78v58b2j45r43lc";
598+ };
599+
600+ propagatedBuildInputs = with self ; [ six ];
601+
602+ meta = {
603+ description = "Reference ASGI adapters and channel layers";
604+ license = licenses.bsd3;
605+ homepage = https://github.com/django/asgiref;
606+ };
607+ };
608+
609+ asgi_ipc = buildPythonPackage rec {
610+ name = "asgi_ipc-${version}";
611+ version = "1.1.0";
612+
613+ src = pkgs.fetchurl {
614+ url = "mirror://pypi/a/asgi_ipc/${name}.tar.gz";
615+ sha256 = "16q5x2cvx3rpnikmqv8l4clkfib8baqy7diy18rsmzj6hqqli3xy";
616+ };
617+
618+ propagatedBuildInputs = with self ; [ asgiref msgpack posix_ipc ];
619+
620+ meta = {
621+ description = "Posix IPC-backed ASGI channel layer implementation";
622+ license = licenses.bsd3;
623+ homepage = http://github.com/django/asgi_ipc/;
624+ };
625+ };
626+
627+ asgi_redis = buildPythonPackage rec {
628+ name = "asgi_redis-${version}";
629+ version = "0.14.1";
630+
631+ src = pkgs.fetchurl {
632+ url = "mirror://pypi/a/asgi_redis/${name}.tar.gz";
633+ sha256 = "13ixh1nwgla7wm2xa42inwrd3g5lri89gd31xl62zhs8m6jmg122";
634+ };
635+
636+ # Requires a redis server available
637+ doCheck = false;
638+
639+ propagatedBuildInputs = with self ; [ asgiref asgi_ipc msgpack six redis cryptography ];
640+
641+ meta = {
642+ description = "Redis-backed ASGI channel layer implementation";
643+ license = licenses.bsd3;
644+ homepage = http://github.com/django/asgi_redis/;
645+ };
646+ };
647+
591 python-editor = buildPythonPackage rec {
648 python-editor = buildPythonPackage rec {
592 name = "python-editor-${version}";
649 name = "python-editor-${version}";
593 version = "0.4";
650 version = "0.4";
@@ -2083,6 +2140,27 @@ in modules // {
2083 };
2140 };
2084 };
2141 };
2085
2142
2143+ channels = buildPythonPackage rec {
2144+ name = "channels-${version}";
2145+ version = "0.17.2";
2146+
2147+ src = pkgs.fetchurl {
2148+ url = "mirror://pypi/c/channels/${name}.tar.gz";
2149+ sha256 = "1a7fzm25sm3qqgxf7j3hml2lkipvf0yapdg4rkk7x3m11zm0xgv9";
2150+ };
2151+
2152+ # Files are missing in the distribution
2153+ doCheck = false;
2154+
2155+ propagatedBuildInputs = with self ; [ asgiref django daphne ];
2156+
2157+ meta = {
2158+ description = "Brings event-driven capabilities to Django with a channel system";
2159+ license = licenses.bsd3;
2160+ homepage = https://github.com/django/channels;
2161+ };
2162+ };
2163+
2086 circus = buildPythonPackage rec {
2164 circus = buildPythonPackage rec {
2087 name = "circus-0.11.1";
2165 name = "circus-0.11.1";
2088
2166
@@ -5373,6 +5451,24 @@ in modules // {
5373 };
5451 };
5374 });
5452 });
5375
5453
5454+ daphne = buildPythonPackage rec {
5455+ name = "daphne-${version}";
5456+ version = "0.15.0";
5457+
5458+ src = pkgs.fetchurl {
5459+ url = "mirror://pypi/d/daphne/${name}.tar.gz";
5460+ sha256 = "095xdh10v8sqwyas02q72ij3ivd5qjg5ki5cvha0fpzd361izdnp";
5461+ };
5462+
5463+ propagatedBuildInputs = with self; [ asgiref autobahn ];
5464+
5465+ meta = {
5466+ description = "Django ASGI (HTTP/WebSocket) server";
5467+ license = licenses.bsd3;
5468+ homepage = https://github.com/django/daphne;
5469+ };
5470+ };
5471+
5376 dateparser = buildPythonPackage rec {
5472 dateparser = buildPythonPackage rec {
5377 name = "dateparser-${version}";
5473 name = "dateparser-${version}";
5378 version = "0.3.2-pre-2016-01-21"; # Fix assert year 2016 == 2015
5474 version = "0.3.2-pre-2016-01-21"; # Fix assert year 2016 == 2015
@@ -17973,6 +18069,21 @@ in modules // {
17973 };
18069 };
17974 };
18070 };
17975
18071
18072+ posix_ipc = buildPythonPackage rec {
18073+ name = "posix_ipc-${version}";
18074+ version = "1.0.0";
18075+
18076+ src = pkgs.fetchurl {
18077+ url = "mirror://pypi/p/posix_ipc/${name}.tar.gz";
18078+ sha256 = "1jzg66708pi5n9w07fbz6rlxx30cjds9hp2yawjjfryafh1hg4ww";
18079+ };
18080+
18081+ meta = {
18082+ description = "POSIX IPC primitives (semaphores, shared memory and message queues)";
18083+ license = licenses.bsd3;
18084+ homepage = http://semanchuk.com/philip/posix_ipc/;
18085+ };
18086+ };
17976
18087
17977 powerline = buildPythonPackage rec {
18088 powerline = buildPythonPackage rec {
17978 rev = "2.1.4";
18089 rev = "2.1.4";
@@ -30000,8 +30111,8 @@ in modules // {
30000 url = "mirror://pypi/a/${pname}/${name}.tar.gz";
30111 url = "mirror://pypi/a/${pname}/${name}.tar.gz";
30001 sha256 = "1158ml8h3g0vlsgw2jmy579glbg7dn0mjij8xibdl509b8qv9p51";
30112 sha256 = "1158ml8h3g0vlsgw2jmy579glbg7dn0mjij8xibdl509b8qv9p51";
30002 };
30113 };
30003− buildInputs = with self; [ unittest2 mock pytest txaio trollius ];
30114+ buildInputs = with self; [ unittest2 mock pytest trollius ];
30004− propagatedBuildInputs = with self; [ six twisted ];
30115+ propagatedBuildInputs = with self; [ six twisted txaio ];
30005 checkPhase = ''
30116 checkPhase = ''
30006 py.test $out
30117 py.test $out
30007 '';
30118 '';