1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, twisted
6, qtpy
7, pyqt5
8}:
9
10buildPythonPackage rec {
11 pname = "qreactor-unstable";
12 version = "2018-09-29";
13
14 src = fetchFromGitHub {
15 owner = "frmdstryr";
16 repo = "qt-reactor";
17 rev = "364b3f561fb0d4d3938404d869baa4db7a982bf0";
18 sha256 = "1nb5iwg0nfz86shw28a2kj5pyhd4jvvxhf73fhnfbl8scgnvjv9h";
19 };
20
21 disabled = pythonOlder "3.0";
22
23 propagatedBuildInputs = [
24 twisted qtpy
25 ];
26
27 checkInputs = [
28 pyqt5
29 ];
30
31 pythonImportsCheck = [
32 "qreactor"
33 ];
34
35 meta = with lib; {
36 homepage = "https://github.com/frmdstryr/qt-reactor";
37 description = "Twisted and PyQt5/qtpy eventloop integration base";
38 license = licenses.mit;
39 maintainers = with maintainers; [ raboof ];
40 };
41}