mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
pythonPackages.asyncio: Move to own file
This commit is contained in:
parent
1943bf73a4
commit
0ddbc518eb
18
pkgs/development/python-modules/asyncio/default.nix
Normal file
18
pkgs/development/python-modules/asyncio/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user