nixpkgs/pkgs/development/python-modules/qasync/default.nix
lucasew 45dd3c1f7a maintainers/lucasew: disown some packages
Signed-off-by: lucasew <lucas59356@gmail.com>
2026-06-16 10:16:48 -03:00

49 lines
999 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyqt6,
pytestCheckHook,
uv-build,
}:
buildPythonPackage rec {
pname = "qasync";
version = "0.28.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CabbageDevelopment";
repo = "qasync";
tag = "v${version}";
hash = "sha256-eQJ1Yszl95IycggSyWcD3opAO1rfBdNp14y8eHDMJY4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.8.3,<0.9.0" uv_build
'';
build-system = [ uv-build ];
nativeCheckInputs = [
pytestCheckHook
pyqt6
];
pythonImportsCheck = [ "qasync" ];
# crashes the interpreter
disabledTestPaths = [
"tests/test_qeventloop.py"
"tests/test_run.py"
];
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 = [ ];
};
}