1{ lib
2, buildPythonPackage
3, fetchPypi
4, vcversioner
5, mock
6, pytestCheckHook
7, pytest-asyncio
8, pytest-trio
9, twisted
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "pyee";
15 version = "8.2.2";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "sha256-XH5g+N+VcQ2+F1UOFs4BU/g5kMAO90SEG0Pzce1T6+o=";
22 };
23
24 buildInputs = [
25 vcversioner
26 ];
27
28 checkInputs = [
29 mock
30 pytest-asyncio
31 pytest-trio
32 pytestCheckHook
33 twisted
34 ];
35
36 pythonImportsCheck = [ "pyee" ];
37
38 meta = with lib; {
39 description = "A port of Node.js's EventEmitter to Python";
40 homepage = "https://github.com/jfhbrook/pyee";
41 license = licenses.mit;
42 maintainers = with maintainers; [ kmein ];
43 };
44}