1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyqt5,
6 pytestCheckHook,
7 pythonOlder,
8 qtpy,
9}:
10
11buildPythonPackage rec {
12 pname = "qtawesome";
13 version = "1.4.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "spyder-ide";
20 repo = "qtawesome";
21 tag = "v${version}";
22 hash = "sha256-VjUlP+5QU9ApD09UNvF48b0gepCUpVO6U6zYaKm0KoE=";
23 };
24
25 propagatedBuildInputs = [
26 pyqt5
27 qtpy
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 # Requires https://github.com/boylea/qtbot which is unmaintained
33 doCheck = false;
34
35 pythonImportsCheck = [ "qtawesome" ];
36
37 meta = with lib; {
38 description = "Iconic fonts in PyQt and PySide applications";
39 mainProgram = "qta-browser";
40 homepage = "https://github.com/spyder-ide/qtawesome";
41 changelog = "https://github.com/spyder-ide/qtawesome/blob/v${version}/CHANGELOG.md";
42 license = licenses.mit;
43 maintainers = [ ];
44 platforms = platforms.linux; # fails on Darwin
45 };
46}