2021-08-24 22:33:34 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-03-24 16:45:56 +00:00
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-trio
|
2022-04-19 09:08:44 +01:00
|
|
|
, pytestCheckHook
|
2021-08-24 22:33:34 +01:00
|
|
|
, pythonOlder
|
2022-04-19 09:08:44 +01:00
|
|
|
, twisted
|
|
|
|
, typing-extensions
|
|
|
|
, vcversioner
|
2021-03-24 16:45:56 +00:00
|
|
|
}:
|
2020-11-17 19:57:14 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyee";
|
2022-03-02 21:42:14 +00:00
|
|
|
version = "9.0.4";
|
2022-04-19 09:08:44 +01:00
|
|
|
format = "setuptools";
|
2021-08-24 22:33:34 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-11-17 19:57:14 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-19 09:08:44 +01:00
|
|
|
hash = "sha256-J3DEkoq8ch9GtwXmpysMWUgMSmnJqDygsAu5lPHqSzI=";
|
2020-11-17 19:57:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
vcversioner
|
|
|
|
];
|
|
|
|
|
2022-04-19 09:08:44 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2020-11-17 19:57:14 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-trio
|
2021-08-24 22:33:34 +01:00
|
|
|
pytestCheckHook
|
2020-11-17 19:57:14 +00:00
|
|
|
twisted
|
|
|
|
];
|
|
|
|
|
2022-04-19 09:08:44 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyee"
|
|
|
|
];
|
2021-08-24 22:33:34 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A port of Node.js's EventEmitter to Python";
|
2020-11-17 19:57:14 +00:00
|
|
|
homepage = "https://github.com/jfhbrook/pyee";
|
2021-08-24 22:33:34 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kmein ];
|
2020-11-17 19:57:14 +00:00
|
|
|
};
|
|
|
|
}
|