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