Merge pull request #23044 from lsix/channels_updates

updates pythonPackages.channels and dependencies
This commit is contained in:
Lancelot SIX
2017-02-28 14:22:16 +01:00
committed by GitHub
3 changed files with 45 additions and 37 deletions

View File

@@ -0,0 +1,23 @@
{ stdenv, buildPythonPackage, fetchurl,
asgiref, django, daphne
}:
buildPythonPackage rec {
name = "channels-${version}";
version = "1.0.3";
src = fetchurl {
url = "mirror://pypi/c/channels/${name}.tar.gz";
sha256 = "1bwlqnfc27p1qnjmdl8jnr941gpl8ggnxxfy8anh9qgmg20q9pfd";
};
# Files are missing in the distribution
doCheck = false;
propagatedBuildInputs = [ asgiref django daphne ];
meta = with stdenv.lib; {
description = "Brings event-driven capabilities to Django with a channel system";
license = licenses.bsd3;
homepage = https://github.com/django/channels;
};
}

View File

@@ -0,0 +1,20 @@
{ stdenv, buildPythonPackage, fetchurl,
asgiref, autobahn, twisted
}:
buildPythonPackage rec {
name = "daphne-${version}";
version = "1.0.3";
src = fetchurl {
url = "mirror://pypi/d/daphne/${name}.tar.gz";
sha256 = "1bpavq3sxr66mqwnnfg67pcchyaq7siqyin2r89aqadf6nab58d2";
};
propagatedBuildInputs = [ asgiref autobahn twisted ];
meta = with stdenv.lib; {
description = "Django ASGI (HTTP/WebSocket) server";
license = licenses.bsd3;
homepage = https://github.com/django/daphne;
};
}