diff --git a/pkgs/development/python-modules/gevent-websocket/default.nix b/pkgs/development/python-modules/gevent-websocket/default.nix new file mode 100644 index 000000000000..28dab3a257f0 --- /dev/null +++ b/pkgs/development/python-modules/gevent-websocket/default.nix @@ -0,0 +1,27 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +, gevent +}: + +buildPythonPackage rec { + pname = "gevent-websocket"; + version = "0.9.3"; + # SyntaxError in tests. + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "07rqwfpbv13mk6gg8mf0bmvcf6siyffjpgai1xd8ky7r801j4xb4"; + }; + + propagatedBuildInputs = [ gevent ]; + + meta = with stdenv.lib; { + homepage = https://www.gitlab.com/noppo/gevent-websocket; + description = "Websocket handler for the gevent pywsgi server, a Python network library"; + license = licenses.asl20; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d772e0a334f3..592d95369591 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2372,20 +2372,7 @@ in { geojson = callPackage ../development/python-modules/geojson { }; - gevent-websocket = buildPythonPackage rec { - name = "gevent-websocket-0.9.3"; - - src = pkgs.fetchurl { - url = "mirror://pypi/g/gevent-websocket/${name}.tar.gz"; - sha256 = "07rqwfpbv13mk6gg8mf0bmvcf6siyffjpgai1xd8ky7r801j4xb4"; - }; - - # SyntaxError in tests. - disabled = isPy3k; - - propagatedBuildInputs = with self; [ gevent ]; - - }; + gevent-websocket = callPackage ../development/python-modules/gevent-websocket { }; genzshcomp = buildPythonPackage { name = "genzshcomp-0.5.1";