2021-08-27 14:25:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-26 19:14:03 +00:00
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-trio
|
2022-04-27 09:35:20 +00:00
|
|
|
, pytestCheckHook
|
2021-08-27 14:25:00 +00:00
|
|
|
, pythonOlder
|
2022-04-27 09:35:20 +00:00
|
|
|
, twisted
|
|
|
|
, typing-extensions
|
|
|
|
, vcversioner
|
2021-04-26 19:14:03 +00:00
|
|
|
}:
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyee";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "9.0.4";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-J3DEkoq8ch9GtwXmpysMWUgMSmnJqDygsAu5lPHqSzI=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
vcversioner
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-11-19 00:13:47 +00:00
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-trio
|
2021-08-27 14:25:00 +00:00
|
|
|
pytestCheckHook
|
2020-11-19 00:13:47 +00:00
|
|
|
twisted
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyee"
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A port of Node.js's EventEmitter to Python";
|
2020-11-19 00:13:47 +00:00
|
|
|
homepage = "https://github.com/jfhbrook/pyee";
|
2021-08-27 14:25:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kmein ];
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
}
|