pythonPackages.aioeventlet: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-25 20:36:45 -04:00 committed by Frederik Rietdijk
parent 467455f330
commit 366ca6cd6d
2 changed files with 36 additions and 23 deletions

View file

@ -0,0 +1,35 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, eventlet
, trollius
, asyncio
, mock
, python
}:
buildPythonPackage rec {
pname = "aioeventlet";
version = "0.4";
src = fetchPypi {
inherit pname version;
sha256 = "19krvycaiximchhv1hcfhz81249m3w3jrbp2h4apn1yf4yrc4y7y";
};
propagatedBuildInputs = [ eventlet trollius asyncio ];
buildInputs = [ mock ];
# 2 tests error out
doCheck = false;
checkPhase = ''
${python.interpreter} runtests.py
'';
meta = with stdenv.lib; {
description = "aioeventlet implements the asyncio API (PEP 3156) on top of eventlet. It makes";
homepage = http://aioeventlet.readthedocs.org/;
license = licenses.asl20;
};
}

View file

@ -3053,29 +3053,7 @@ in {
fasteners = callPackage ../development/python-modules/fasteners { };
aioeventlet = buildPythonPackage rec {
name = "aioeventlet-${version}";
version = "0.4";
src = pkgs.fetchurl {
url = "mirror://pypi/a/aioeventlet/aioeventlet-0.4.tar.gz";
sha256 = "19krvycaiximchhv1hcfhz81249m3w3jrbp2h4apn1yf4yrc4y7y";
};
propagatedBuildInputs = with self; [ eventlet trollius asyncio ];
buildInputs = with self; [ mock ];
# 2 tests error out
doCheck = false;
checkPhase = ''
${python.interpreter} runtests.py
'';
meta = with stdenv.lib; {
description = "aioeventlet implements the asyncio API (PEP 3156) on top of eventlet. It makes";
homepage = http://aioeventlet.readthedocs.org/;
};
};
aioeventlet = callPackage ../development/python-modules/aioeventlet { };
olefile = callPackage ../development/python-modules/olefile { };