2017-06-04 11:24:32 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy33
|
|
|
|
, pythonOlder
|
|
|
|
, asyncio
|
|
|
|
, singledispatch
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiofiles";
|
2017-10-25 19:04:35 +01:00
|
|
|
version = "0.3.2";
|
2017-06-04 11:24:32 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 19:04:35 +01:00
|
|
|
sha256 = "852a493a877b73e11823bfd4e8e5ef2610d70d12c9eaed961bcd9124d8de8c10";
|
2017-06-04 11:24:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optionals isPy33 [ asyncio singledispatch ];
|
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "File support for asyncio";
|
|
|
|
homepage = https://github.com/Tinche/aiofiles;
|
|
|
|
license = with lib.licenses; [ asl20 ];
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
2017-06-04 11:24:32 +01:00
|
|
|
};
|
2017-12-05 22:20:11 +00:00
|
|
|
}
|