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