1{ buildPythonPackage
2, fetchPypi
3, lib
4, vcversioner
5, pytestrunner
6, mock
7, pytest
8, pytest-asyncio
9, pytest-trio
10, twisted
11, zipp ? null
12, pyparsing ? null
13, pyhamcrest
14, futures ? null
15, attrs ? null
16, isPy27
17}:
18
19buildPythonPackage rec {
20 pname = "pyee";
21 version = "8.1.0";
22
23 src = fetchPypi {
24 inherit pname version;
25 sha256 = "92dacc5bd2bdb8f95aa8dd2585d47ca1c4840e2adb95ccf90034d64f725bfd31";
26 };
27
28 buildInputs = [
29 vcversioner
30 ];
31
32 checkInputs = [
33 mock
34 pyhamcrest
35 pytest
36 pytest-asyncio
37 pytest-trio
38 pytestrunner
39 twisted
40 ] ++ lib.optional isPy27 [
41 attrs
42 futures
43 pyparsing
44 zipp
45 ];
46
47 meta = {
48 description = "A port of Node.js's EventEmitter to python";
49 homepage = "https://github.com/jfhbrook/pyee";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ kmein ];
52 };
53}