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
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2022-04-27 09:35:20 +00:00
|
|
|
, twisted
|
|
|
|
, typing-extensions
|
2023-11-16 04:20:00 +00:00
|
|
|
, wheel
|
2021-04-26 19:14:03 +00:00
|
|
|
}:
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyee";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "11.0.0";
|
|
|
|
format = "pyproject";
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-J8aCvOYL2txdPiPqzUEB3zKMAoCISj2cB/Ok4+WV3ic=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
2020-11-19 00:13:47 +00:00
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|