pythonPackages.asyncio: Move to own file

This commit is contained in:
Elis Hirwing 2018-03-31 11:22:04 +02:00 committed by Frederik Rietdijk
parent 1943bf73a4
commit 0ddbc518eb
2 changed files with 19 additions and 16 deletions

View File

@ -0,0 +1,18 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy33, pythonOlder }:
buildPythonPackage rec {
pname = "asyncio";
version = "3.4.3";
disabled = pythonOlder "3.3";
src = fetchPypi {
inherit pname version;
sha256 = "0hfbqwk9y0bbfgxzg93s2wyk6gcjsdxlr5jwy97hx64ppkw0ydl3";
};
meta = with stdenv.lib; {
description = "Reference implementation of PEP 3156";
homepage = http://www.python.org/dev/peps/pep-3156;
license = licenses.free;
};
}

View File

@ -517,22 +517,7 @@ in {
astor = callPackage ../development/python-modules/astor {};
asyncio = if (pythonAtLeast "3.3") then buildPythonPackage rec {
name = "asyncio-${version}";
version = "3.4.3";
src = pkgs.fetchurl {
url = "mirror://pypi/a/asyncio/${name}.tar.gz";
sha256 = "0hfbqwk9y0bbfgxzg93s2wyk6gcjsdxlr5jwy97hx64ppkw0ydl3";
};
meta = {
description = "Reference implementation of PEP 3156";
homepage = http://www.python.org/dev/peps/pep-3156;
license = licenses.free;
};
} else null;
asyncio = callPackage ../development/python-modules/asyncio {};
python-fontconfig = callPackage ../development/python-modules/python-fontconfig { };