2019-12-16 21:25:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-03-16 22:49:42 +00:00
|
|
|
, pythonOlder
|
2020-07-04 15:32:01 +01:00
|
|
|
, pygments
|
2021-02-16 21:36:35 +00:00
|
|
|
, pytestCheckHook
|
2021-03-16 22:49:42 +00:00
|
|
|
, pytest-cov
|
2019-12-16 21:25:06 +00:00
|
|
|
, uvloop
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiorun";
|
2021-03-16 22:49:42 +00:00
|
|
|
version = "2020.12.1";
|
2019-12-16 21:25:06 +00:00
|
|
|
format = "flit";
|
2021-03-16 22:49:42 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2019-12-16 21:25:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cjrh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-16 22:49:42 +00:00
|
|
|
sha256 = "sha256-ktc2cmoPNYcsVyKCWs+ivhV5onywFIrdDRBiBKrdiF4=";
|
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
|
2021-03-16 22:49:42 +00:00
|
|
|
pytest-cov
|
2019-12-16 21:25:06 +00:00
|
|
|
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;
|
2021-03-16 22:49:42 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-12-16 21:25:06 +00:00
|
|
|
};
|
|
|
|
}
|