1{ stdenv, buildPythonPackage, fetchPypi, qtpy, six, pyqt5, pytest }:
2
3buildPythonPackage rec {
4 pname = "QtAwesome";
5 version = "0.5.6";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0f6dvqmalzi4q4rrpl1xlrxanibam1nifzsgqb5z4jr4ap7kiyp3";
10 };
11
12 propagatedBuildInputs = [ qtpy six ];
13
14 checkInputs = [ pyqt5 pytest ];
15
16 checkPhase = ''
17 py.test
18 '';
19
20 # Requires https://github.com/boylea/qtbot
21 doCheck = false;
22
23 meta = with stdenv.lib; {
24 description = "Iconic fonts in PyQt and PySide applications";
25 homepage = https://github.com/spyder-ide/qtawesome;
26 license = licenses.mit;
27 platforms = platforms.linux; # fails on Darwin
28 };
29}