Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 999 B view raw
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.3"; 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-cndmxdo00TLq1Cy66IFwcT5CKBavaFAfknkpLZCYvUQ="; 22 }; 23 24 propagatedBuildInputs = [ 25 pyqt5 26 qtpy 27 ]; 28 29 nativeCheckInputs = [ 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 changelog = "https://github.com/spyder-ide/qtawesome/blob/v${version}/CHANGELOG.md"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ ]; 46 platforms = platforms.linux; # fails on Darwin 47 }; 48}