2019-12-16 21:25:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
2020-07-04 15:32:01 +01:00
|
|
|
, pygments
|
2021-02-16 21:36:35 +00:00
|
|
|
, pytestCheckHook
|
2019-12-16 21:25:06 +00:00
|
|
|
, pytestcov
|
|
|
|
, uvloop
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiorun";
|
2020-07-06 08:00:45 +01:00
|
|
|
version = "2020.6.1";
|
2019-12-16 21:25:06 +00:00
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cjrh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-07-06 08:00:45 +01:00
|
|
|
sha256 = "00mq5ylhhdfdqrh7zdqabf3wy85jrkqvgfb1421ll46fsjim2d14";
|
2019-12-16 21:25:06 +00:00
|
|
|
};
|
|
|
|
|
2020-07-04 15:32:01 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
2019-12-16 21:25:06 +00:00
|
|
|
checkInputs = [
|
2021-02-16 21:36:35 +00:00
|
|
|
pytestCheckHook
|
2019-12-16 21:25:06 +00:00
|
|
|
pytestcov
|
|
|
|
uvloop
|
|
|
|
];
|
|
|
|
|
|
|
|
# allow for writable directory for darwin
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
2021-02-16 21:36:35 +00:00
|
|
|
pythonImportsCheck = [ "aiorun" ];
|
2019-12-16 21:25:06 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|