2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pyqt5,
|
|
|
|
pytestCheckHook,
|
|
|
|
poetry-core,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qasync";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.27.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CabbageDevelopment";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-oXzwilhJ1PhodQpOZjnV9gFuoDy/zXWva9LhhK3T00g=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm qasync/_windows.py # Ignoring it is not taking effect and it will not be used on Linux
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [ poetry-core ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
propagatedBuildInputs = [ pyqt5 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "qasync" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = [ "tests/test_qeventloop.py" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Allows coroutines to be used in PyQt/PySide applications by providing an implementation of the PEP 3156 event-loop";
|
|
|
|
homepage = "https://github.com/CabbageDevelopment/qasync";
|
|
|
|
license = [ lib.licenses.bsd2 ];
|
|
|
|
maintainers = [ lib.maintainers.lucasew ];
|
|
|
|
};
|
|
|
|
}
|