1{ lib, buildPythonPackage, fetchFromGitHub, pytest, isPy3k, pyqt5, pyqt ? pyqt5 }: 2 3buildPythonPackage rec { 4 pname = "quamash"; 5 version = "0.6.1"; 6 7 disabled = !isPy3k; 8 9 # No tests in PyPi tarball 10 src = fetchFromGitHub { 11 owner = "harvimt"; 12 repo = "quamash"; 13 rev = "version-${version}"; 14 sha256 = "117rp9r4lz0kfz4dmmpa35hp6nhbh6b4xq0jmgvqm68g9hwdxmqa"; 15 }; 16 17 propagatedBuildInputs = [ pyqt ]; 18 19 checkInputs = [ pytest ]; 20 checkPhase = '' 21 pytest -k 'test_qthreadexec.py' # the others cause the test execution to be aborted, I think because of asyncio 22 ''; 23 24 meta = with lib; { 25 description = "Implementation of the PEP 3156 event-loop (asyncio) api using the Qt Event-Loop"; 26 homepage = "https://github.com/harvimt/quamash"; 27 license = licenses.bsd2; 28 maintainers = with maintainers; [ borisbabic ]; 29 }; 30}