depot/third_party/nixpkgs/pkgs/development/python-modules/qasync/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

44 lines
995 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pyqt5
, pytestCheckHook
, poetry-core
}:
buildPythonPackage rec {
pname = "qasync";
version = "0.27.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "CabbageDevelopment";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-kU8QgcBZSzQQO3V4zKaIBuodUCQS4CLHOH7qHYU8ja0=";
};
postPatch = ''
rm qasync/_windows.py # Ignoring it is not taking effect and it will not be used on Linux
'';
buildInputs = [ poetry-core ];
propagatedBuildInputs = [ pyqt5 ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "qasync" ];
disabledTestPaths = [
"tests/test_qeventloop.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 = [ lib.maintainers.lucasew ];
};
}