Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyqt5 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "qasync"; 10 version = "0.24.1"; 11 12 src = fetchFromGitHub { 13 owner = "CabbageDevelopment"; 14 repo = pname; 15 rev = "refs/tags/v${version}"; 16 hash = "sha256-DAzmobw+c29Pt/URGO3bWXHBxgu9bDHhdTUBE9QJDe4="; 17 }; 18 19 postPatch = '' 20 rm qasync/_windows.py # Ignoring it is not taking effect and it will not be used on Linux 21 ''; 22 23 propagatedBuildInputs = [ pyqt5 ]; 24 25 checkInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "qasync" ]; 28 29 disabledTestPaths = [ 30 "tests/test_qeventloop.py" 31 ]; 32 33 meta = { 34 description = "Allows coroutines to be used in PyQt/PySide applications by providing an implementation of the PEP 3156 event-loop"; 35 homepage = "https://github.com/CabbageDevelopment/qasync"; 36 license = [ lib.licenses.bsd2 ]; 37 maintainers = [ lib.maintainers.lucasew ]; 38 }; 39}