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