2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyqt5
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, qtpy
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-11-04 12:27:35 +00:00
|
|
|
pname = "qtawesome";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.3.1";
|
2022-11-04 12:27:35 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spyder-ide";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-dF77vkrEl671fQvsHAX+JY9OmLA29kgAVswY2b3UyTg=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyqt5
|
|
|
|
qtpy
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-04 12:27:35 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
# Requires https://github.com/boylea/qtbot which is unmaintained
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"qtawesome"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Iconic fonts in PyQt and PySide applications";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "qta-browser";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/spyder-ide/qtawesome";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/spyder-ide/qtawesome/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-11-04 12:27:35 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux; # fails on Darwin
|
|
|
|
};
|
|
|
|
}
|