2019-12-16 21:25:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, uvloop
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiorun";
|
2020-02-20 21:37:23 +00:00
|
|
|
version = "2020.2.1";
|
2019-12-16 21:25:06 +00:00
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cjrh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-02-20 21:37:23 +00:00
|
|
|
sha256 = "0wcj8prkijb889ic8n6varms7xkwy028hhw0imgkd1i0p64lm3m4";
|
2019-12-16 21:25:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
uvloop
|
|
|
|
];
|
|
|
|
|
|
|
|
# allow for writable directory for darwin
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Boilerplate for asyncio applications";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cjrh/aiorun";
|
2019-12-16 21:25:06 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|