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