pythonPackages.gevent-websocket: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 16:27:27 -04:00 committed by Frederik Rietdijk
parent cdd7e77ac4
commit f7b0a11dd8
2 changed files with 28 additions and 14 deletions

View File

@ -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;
};
}

View File

@ -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";