blob: aa7462ba831f41826d05fac7d76a16bb1c7b8724 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pytest
, pytestcov
, uvloop
}:
buildPythonPackage rec {
pname = "aiorun";
version = "2020.1.3";
format = "flit";
disabled = isPy27;
src = fetchFromGitHub {
owner = "cjrh";
repo = pname;
rev = "v${version}";
sha256 = "0ka0pj6xr47j7rw6kd5mkrr5jyhn631pfpd95ig7vbln4434qnb4";
};
checkInputs = [
pytest
pytestcov
uvloop
];
# allow for writable directory for darwin
preBuild = ''
export HOME=$TMPDIR
'';
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Boilerplate for asyncio applications";
homepage = https://github.com/cjrh/aiorun;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
|