diff --git a/pkgs/development/python-modules/channels/default.nix b/pkgs/development/python-modules/channels/default.nix new file mode 100644 index 000000000000..c7466d242c75 --- /dev/null +++ b/pkgs/development/python-modules/channels/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 224aae7b574a..659da2c66f58 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2391,26 +2391,7 @@ in { }; }; - channels = buildPythonPackage rec { - name = "channels-${version}"; - version = "1.0.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/c/channels/${name}.tar.gz"; - sha256 = "0d8fywg416p851i8vz26pmz8b47akg5z10yw7xc7i51cpmp7y5zj"; - }; - - # Files are missing in the distribution - doCheck = false; - - propagatedBuildInputs = with self ; [ asgiref django daphne ]; - - meta = { - description = "Brings event-driven capabilities to Django with a channel system"; - license = licenses.bsd3; - homepage = https://github.com/django/channels; - }; - }; + channels = callPackage ../development/python-modules/channels {}; circus = buildPythonPackage rec { name = "circus-0.11.1";